Part Number Hot Search : 
RF150 A1273 S25GB A1273 01M16 13R105C 7032A M51271FP
Product Description
Full Text Search
 

To Download SMC91C95 Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  SMC91C95 preliminary isa/pcmcia full duplex single-chip ethernet and modem controller with ram features isa/pcmcia single chip ethernet controller with modem support 6 kbytes built-in ram s upports ieee 802.3 (ansi 8802-3) ethernet standards full duplex support hardware memory management unit built-in aui and 10base-t network interfaces simultasking - early transmit and early receive functions advanced power management features/including magic packet frame control software compatible with smc91c92/ smc91c94 (in isa mode) configuration registers implement cardbus multi-function specification v3.0 with backward compatibility to v2.1 interfaces directly to lucent technologies and rockwell international modem chipsets on-chip attribute memory (cis) of up to 512 bytes (on even addresses) for card configuration information; expandable externally option for serial or parallel eeprom for cis optional external flash capability for xip (execute in place) automatic technology to detect tx/rx 10base-t tranceiver pair miswiring low power cmos design supports magic packet wakeup 128 pin vtqfp package bus interface direct interface to isa and pcmcia with no wait states high impedance speaker interface flexible bus interface 16-bit data and control paths fast access time (40 ns) pipelined data path handles block word transfers for any alignment high performance chained ("back-to- back") transmit and receive flat memory structure for low cpu overhead dynamic memory allocation between transmit and receive buffered architecture, insensitive to bus latencies (no overruns/underruns) supports boot prom for diskless isa applications simultasking is a trademark and smc is a registered trademark of standard microsystems corporation
2 table of contents features ................................ ................................ ................................ ................................ ....................... 1 pin configuration ................................ ................................ ................................ ................................ .... 3 general description ................................ ................................ ................................ ............................... 4 overview ................................ ................................ ................................ ................................ ...................... 4 pin requirements ................................ ................................ ................................ ................................ ...... 7 description of pin functions ................................ ................................ ................................ .............. 9 buffer types ................................ ................................ ................................ ................................ ........... 17 functional description ................................ ................................ ................................ ....................... 21 interrupt structure ................................ ................................ ................................ ............................ 32 reset logic ................................ ................................ ................................ ................................ .............. 33 powerdown logic ................................ ................................ ................................ ................................ 34 pcmcia a ttribute m emory : a ddress 0- 7ffe h ................................ ................................ ............................ 35 pcmcia c onfiguration r egisters : a ddress 8000-803e h ................................ ................................ ............. 35 i nternal vs e xternal a ttribute m emory m ap ................................ ................................ ................................ .. 36 theory of operation ................................ ................................ ................................ ............................ 69 ?m agic p acket ? s upport ................................ ................................ ................................ ................................ .. 70 internal vs. external attribute memory map ................................ ................................ ........ 80 pcmcia configuration registers description ................................ ................................ ....... 82 functional description of the blocks ................................ ................................ ...................... 91 board setup information ................................ ................................ ................................ ............... 100 operational description ................................ ................................ ................................ .................. 104 timing diagrams ................................ ................................ ................................ ................................ .... 108 related documentation 1. pcmcia 2.1 standard (for pcmcia timing and functionality) 2. pcmcia 3.x spec (for multi-function extensions) 3. at&t hsm288xcf modem chip set data sheet - july 5, 1994 4. rockwell rc224atf and c39 modem chip sets designer?s guide
3 network interface integrates 10base-t transceiver functions: - driver and receiver - link integrity test - receive polarity detection and correction integrates aui interface implements 10 mbps manchester encoding/decoding and clock recovery automatic retransmission, bad packet rejection, and transmit padding external and internal loopback modes four direct driven leds for status/ diagnostics software drivers uses certified smc9000 drivers which operate with every major network operating system software driver compatible with smc91c92, smc91c94 and smc91c100 (100 mbps) controllers in isa mode software driver utilizes full capability of 32 bit microprocessor pin configuration avdd txp/ncoll txn/ncrs tpetxp teptxdp tpetxn tpetxdn avss ntxled/ntxen nrxled/rxclk nlinkled/txd nbseled/rxd vdd spkrin spkrout nmis16 mrdy mint vss mringin nmringoa mringob nmcs nmreset vdd midlen1 nmpwdn nmpdout mfbk1 vss nc nd 96 95 94 93 92 91 90 89 88 87 86 85 84 83 82 81 80 79 78 77 76 75 74 73 72 71 70 69 68 67 66 65 n c a v s s c o l n c o l p r e c n r e c p t p e r x n t p e r x p a v d d a v s s r b i a s a v d d n x e n d e c n e n 1 6 p w r d w n / t x c l k n r o m / n p c m c i a v s s e n e e p e e s k e e c s e e d o / s d o u t e e d i i o s 2 i o s 1 v d d i o s 0 x t a l 2 x t a l 1 w a k e u p n w a k e u p _ e n r e s e t n c 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 3 3 3 4 3 5 3 6 3 7 3 8 3 9 4 0 4 1 4 2 4 3 4 4 4 5 4 6 4 7 4 8 4 9 5 0 5 1 5 2 5 3 5 4 5 5 5 6 5 7 5 8 5 9 6 0 6 1 6 2 6 3 6 4 nc nc vss intr3 intr2/nstschg intr1/ninpack intr0/nireq vdd niord niowr nmemr/noe niosc16/niois16 vss iochrdy/nwait bale/nwe nsbhe/nce2 vdd d15 d14 d13 d12 vss d11 d10 d9 vdd d8 d7 d6 vss d5 d4 1 2 8 1 2 7 1 2 6 1 2 5 1 2 4 1 2 3 1 2 2 1 2 1 1 2 0 1 1 9 1 1 8 1 1 7 1 1 6 1 1 5 1 1 4 1 1 3 1 1 2 1 1 1 1 1 0 1 0 9 1 0 8 1 0 7 1 0 6 1 0 5 1 0 4 1 0 3 1 0 2 1 0 1 1 0 0 9 9 9 8 9 7 SMC91C95 128 pin vtqfp n c a e n / n r e g a 0 a 1 v d d a 2 a 3 a 4 a 5 a 6 a 7 v s s a 8 a 9 a 1 0 a 1 1 a 1 2 a 1 3 v d d a 1 4 a 1 5 a 1 6 / n f w e a 1 7 / n f c s a 1 8 a 1 9 / n c e 1 v s s d 0 d 1 d 2 v d d d 3 n c
4 general description the SMC91C95 is a vlsi ethernet controller that combines isa and pcmcia interfaces, as well as an interface to a companion modem chip set, in one chip. the SMC91C95 integrates all the mac and physical layer functions as well as the packet ram needed to implement a high performance 10base-t (twisted pair) node. for 10base5 (thick coax), 10base2 (thin coax), and 10base-f (fiber) implementations, the SMC91C95 interfaces to external transceivers via its aui port. only one additional ic is required on most applications. the SMC91C95 occupies 16 i/o locations and no memory space except for pcmcia attribute memory space. the same i/o space is used for both isa and pcmcia operations. the SMC91C95 can directly interface the isa and pcmcia buses and deliver no wait state operation. its shared memory is sequentially accessed with 40ns access times to any of its registers, including its packet memory. no dma services are used by the SMC91C95; virtually decoupling network traffic from local or system bus utilization. for packet memory management, the SMC91C95 integrates a unique hardware memory management unit (mmu) with enhanced performance and decreased software overhead when compared to ring buffer and linked list architectures. the SMC91C95 is portable to different cpu and bus platforms due to its flexible bus interface, flat memory structure (no pointers), and its loosely coupled buffered architecture (not sensitive to latency). the SMC91C95 interfaces directly with rockwell international l39/c39 controller-based modems and lucent technologies? hsm288xcf modem. overview a unique architecture allows the SMC91C95 to combine high performance, flexibility, high integration and simple software interface. the SMC91C95 incorporates the smc91c92/4 functionality for isa environments with several new features, as well as a pcmcia interface and attribute registers that comply with the pcmcia multi-function specification. mode selection between isa and pcmcia is static and is done only once at the end of power on reset. the SMC91C95 consists of the same logical i/o register structure in isa and pcmcia modes. however, some of the signals used to access the pcmcia differ from the isa mode. additional registers exist in the pcmcia attribute space. the rom memory space only exists in isa mode and the attribute space only exists in pcmcia mode. i/o decoders are included in the SMC91C95?s pcmcia interface, with independent decoders for the lan and for the modem functions. these decoders are used whenever the SMC91C95 is used as a multi-function card, and they can be bypassed when only one function is enabled. the SMC91C95 also merges the lan?s internal interrupt source with the external modem interrupt connected to the SMC91C95. the mmu (memory management unit) architecture used by the SMC91C95 combines the simplicity and low overhead of fixed areas with the flexibility of linked lists providing improved performance over other methods. the SMC91C95 is designed to support full duplex switched ethernet where transmit and
5 receive are fully independent. it has 6 kbytes of internal memory and the mmu manages memory in 256 byte pages. the memory size accommodates the increase in interrupt latency resulting from simultaneous lan and modem operation as well as the potential for simultaneous transmit and receive traffice in some full duplex applications. packet reception and transmission are determined by memory availability. all other resources are always available if memory is available. to complement this flexible architecture, all isa bus interface functions are incorporated in the SMC91C95, as well as a 4608 byte packet ram and serial eeprom- based setup. the user can select or modify configuration choices. the SMC91C95 stores the configuration information structure (cis) on reset or power- up from the serial eeprom. this allows the host to access data to allow the setup of the pcmcia multi-function card. in isa mode, the serial eeprom acts as storage for configuration and ieee ethernet address information compatible with the existing smc9000 family of isa ethernet controllers. in pcmcia mode, the serial eeprom stores the cis, as well as the ieee address, information, but it does not store any i/o or irq information since this information is handled by the host?s socket controller. for cis requirements above 512 bytes, an optional external parallel eeprom can be used in conjunction with the internal cis. this allows additional external, non-volatile storage for applications that require xip and use the modem function. if the serial eeprom is not used in pcmcia mode, the parallel eeprom must be used. in this case, the parallel eeprom is selected for the first 512 bytes of storage as well, allowing the cis to be stored in the parallel eeprom and, on power-up, to be read directly by the host. the remaining parallel eeprom can be used for xip applications, if needed. the SMC91C95 integrates most of the 802.3 functionality, incorporating the mac layer protocol, the physical layer encoding and decoding functions with the ability to handle the aui interface. for twisted pair networks, the SMC91C95 integrates the twisted pair transceiver as well as the link integrity test functions. the SMC91C95 is a true 10base-t single chip able to interface a system or a local bus. directly-driven leds for installation and run- time diagnostics are provided, as well as 802.3 statistics gathering to facilitate network management. the SMC91C95 offers: high integration: single chip adapter including: packet ram isa bus interface pcmcia interface eeprom interface encoder decoder with aui interface full duplex, magic packet 10base-t transceiver lucent technologies and rockwell international modem interface high performance: chained (?back-to-back?) packet handling with no cpu intervention: queues transmit packets queues receive packets full duplex operation for higher network throughput stores results in memory along with packet queues ethernet and modem interrupts optional single interrupt upon completion of transmit chain
6 fast block move operation for load/unload: cpu sees packet bytes as if stored contiguously handles 16 bit transfers regardless of address alignment access to packet through fixed window fast bus interface: compatible with isa type and faster buses flexibility: flexible packet and header processing: can be set to simultasking - early receive and transmit modes can access any byte in the packet can immediately remove undesired packets from queue can move packets from receive to transmit queue can alter receive processing order without copying data can discard or enqueue again a failed transmission resource allocation: memory dynamically allocated for transmit and receive can automatically release memory on successful transmission configuration: isa: uses non-volatile jumperless setup via serial eeprom pcmcia: uses serial eeprom for attribute memory storage. pcmcia i/o ignores address lines a4-a15 and relies on the pcmcia host, decoding for the slot nrom/npcmcia on the SMC91C95 is left open with a pullup for isa mode. this pin is sampled at the end of power on reset. if found low, the SMC91C95 is configured for pcmcia mode.
7 pin requirements function isa pcmcia number of pins system address bus a0-a15 a16 a17 a18 a19 aen a0-a15 nfwe nfcs nce1 nreg 21 system data bus d0-d15 d0-d15 16 system control bus reset bale niord niowr nmemr iochrdy niocs16 nsbhe intr0 intr1 intr2 intr3 reset nwe niord niowr noe nwait niois16 nce2 nireq ninpack nstschg 12 modem interface nmreset mint nmcs mrdy nmpwdn midlen1 mringin nmringoa mringob spkrin spkrout nmpdout mfbk1 nmis16 nmreset mint nmcs mrdy nmpwdn midlen1 mringin nmringoa mringob spkrin spkrout nmpdout mfbk1 nmis16 14 serial eeprom eedi eedo eecs eesk eneep ios0 ios1 ios2 eedi eedo eecs eesk eneep ios0 ios1 ios2 8
8 function isa pcmcia number of pins crystal osc. xtal1 xtal2 xtal1 xtal2 2 power vdd avdd vdd avdd 12 ground gnd agnd gnd agnd 12 10base-t interface tperxp tperxn tpetxp tpetxn tpetxdp tpetxdn tperxp tperxn tpetxp tpetxn tpetxdp tpetxdn 6 aui interface recp recn colp coln txp/ncoll txn/ncrs recp recn colp coln txp/ncoll txn/ncrs 6 leds nlnkled/txd nrxled/rxclk nbseled/rxd ntxled/ntxen nlnkled/txd nrxled/rxclk nbseled/rxd ntxled/ntxen 4 misc. rbias wakeup nwakeupen pwrdwn/txclk nxendec nen16 rom/npcmcia rbias wakeup nwakeupen pwrdwn/txclk nxendec nen16 rom/npcmcia 7 total pins 120
9 description of pin functions pin no. name symbol type description 113 nrom/ npcmcia i/o4 with pullup this pin is sampled at the end of reset. when this pin is sampled low the SMC91C95 is configured for pcmcia operation and all pin definitions correspond to the pcmcia mode. for isa operation this pin is left open and is used as a rom chip select output that goes active when nmemr is low and the address bus contains a valid rom address. 35, 36, 38-43, 45-50, 52, 53 address 0- 15 a0-a15 i input address lines 0 through 15. 54 address 16 a16 i isa - input address line 16. nflash memory write nfwe o4 pcmcia - output. flash memory write enable used for programming the attribute memory. goes active (low) when nwe=0 and wrattrib=1 (in ecor bit 3). 55 address 17 a17 i isa - input address line 17. nflash memory chip select nfcs o4 pcmcia - output. flash memory chip select used to access attribute memory. goes active (low) when nreg=0, nce1=0 and a15=0. 56 address 18 a18 i input address line 18. 57 address 19 a19 i with pullup isa - input address line 19. card enable 1 nce1 pcmcia - card enable 1 input. used to select card on even byte accesses. 34 address enable aen i with pullup isa - address enable input. used as an address qualifier. address decoding is only enabled when aen is low. nreg pcmcia - attribute memory and io select input. asserted when the card attribute space or io space is being accessed.
10 description of pin functions pin no. name symbol type description 81 nbyte high enable nsbhe i with pullup isa - byte high enable input. asserted (low) by the system to indicate a data transfer on the upper data byte. ncard enable 2 nce2 pcmcia - card enable 2 input. used to select card on odd byte accesses. 83 ready iochrdy od24 with pullup isa - output. optionally used by the SMC91C95 to extend host cycles. nwait nwait pcmcia - output. optionally used by the SMC91C95 to extend host cycles. 59, 6 0, 61, 63, 65, 66, 68-70, 72-74, 76-79 data bus d0-d15 i/o24 bidirectional. 16 bit data bus used to access the SMC91C95 internal registers. the data bus has weak internal pullups. supports direct connection to the system bus without external buffering. 98 reset reset is with pullup input. active high reset. this input is not considered active unless it is active for at least 100ns to filter narrow glitches. a por circuit generates an internal reset upon power up for at least 15msec. all hardware reset references in this spec relate to the or function of the por and the reset pin. 82 address latch bale is with pullup isa - input. address strobe. for systems that require address latching, the falling edge of bale latches address lines and nsbhe. nwrite enable nwe pcmcia - write enable input. used for writing into cor and csr registers as well as attribute memory space. 90 interrupt intr0 o24 isa - active high interrupt signal. the interrupt line selection is determined by the value of int sel1-0 bits in the configuration register. this interrupt is tri-stated when not selected.
11 description of pin functions pin no. name symbol type description ninterrupt request nireq pcmcia - active low interrupt request output. pin acts as a ready pin during power-up. the pin should be pulled low within 10us of the application of the vcc or reset (which ever occurs later). it remains low(0) until the cis is loaded in the internal sram. the high(1) state indicates to the host controller that the device is ready. 91 interrupt 1 intr1 o24 isa - output. active high interrupt signal. the interrupt line selection is determined by the value of int sel1-0 bits in the configuration register. this interrupt is tri-stated when not selected. ninpack pcmcia - output asserted to acknowledge read cycles for an enabled function. 92 interrupt 2 intr2 o24 isa - output. active high interrupt signal. the interrupt line selection is determined by the value of int sel1-0 bits in the configuration register. this interrupt is tri-stated when not selected. nstatus changed nstschg pcmcia - status changed bit. depending on the setting of the ringen bit (modem ccsr), this pin either reflects the ringing status (exca mode) or the state of the modem changed bit. the ringing status is obtained by stretching the mringin to convert a 20hz toggle rate to a constant level. 93 interrupt 3 intr3 o24 isa - output. active high interrupt signal. the interrupt line selection is determined by the value of int sel1-0 bits in the configuration register. this interrupt is tri-stated when not selected. 85 ni/o 16 niocs16 od24 isa - active low output asserted in 16 bit mode when aen is low and a4-a15 decode to the SMC91C95 address programmed into the high byte of the base address register.
12 description of pin functions pin no. name symbol type description niois16 pcmcia - active low output asserted whenever the SMC91C95 is in 16 bit mode, and ?enable function? bit in the ecor register is high, nreg is low and a4-a15 decode to the lan address specified in i/o base registers 0 and 1 in pcmcia attribute space. 88 ni/o read niord is with pullup input. active low read strobe used to access the SMC91C95 io space. 87 ni/o write niowr is with pullup input. active low write strobe used to access the SMC91C95 io space. 86 nmemory read nmemr is with pullup isa - active low signal used by the host processor to read from the external rom. noutput enable noe pcmcia - output enable input used to read from the cor, csr and attribute memory. 24 nmodem reset nmreset o4 reset output to modem. asserted whenever reset pin is high, internal por is active, or sreset bit is high (mcor bit 7). 18 modem interrupt mint i with pull down interrupt input from modem. reflected in intr (csr bit 1) and asserts the appropriate interrupt pin if enabled. 23 nmodem chip select nmcs o4 chip select output to modem. 17 modem ready mrdy i with pullup modem ready input. low indicates the modem is not ready, either after reset or exiting from stop or sleep modes. 27 nmodem powerdown nmpwdn o4 powerdown output to modem controller. this pin is active (low) when either the pwrdwn bit (csr bit 2) is set or the modem is disabled (not configured).
13 description of pin functions pin no. name symbol type description 26 midlen1 o4 powerdown output to modem controller. this pin is active (high) when either the pwrdwn bit (csr bit 2) is set or the modem is disabled (not configured). 20 modem ring input mringin i ring input from the modem controller. toggles when ringing, low when not ringing. 21 nmodem ring output a nmringoa o4 ring output signal. when there is no ringing on the mringin pin and the modem is not in powerdown mode this output is high. during ringing this signal is the inverse of the mringin input. when the pwrdwn bit is set or the function is disabled, this output is low. this signal is activated about 12 msec after removing powerdown. 22 modem ring output b mringob o4 ring output signal. when the modem is not in powerdown mode (pwrdwn bit is zero and the function is enabled) this output follows the value of the mringin input. when entering powerdown mode, a rising edge is generated on the pin. a rising edge is also generated when exiting powerdown mode also. refer to figure 2. 14 speaker input spkrin i with pullup speaker input. this is a digitized (single level) audio input from the modem controller. 15 speaker output spkrout o4 tri-stable with pullup speaker output. this pin reflects the spkrin pin when enabled by the audio bit (modem csr bit 3). when disabled this pin is tri- stated. 28 nmpdout i schmitt used to control powerdown mode. tie to a 180k pull-up and a 0.1uf cap to ground. tie high when not used. this signal is used in the rc time constant. 29 mfbk1 o4 with pullup tie to nmpdout through a 5.1m resistor. this signal is used in the rc time constant in conjuction with the nmpdout pin.
14 description of pin functions pin no. name symbol type description 16 n16 bit modem nmis16 i with pullup input. when low, it indicates a 16 bit modem, otherwise the modem is 8 bit wide. used to determine if niois16 (pcmcia) and niocs16 (isa) need to be asserted for modem cycles. the value of this pin may change from cycle to cycle. 110 eeprom clock eesk o4 output. 4 m s clock used to shift data in and out of the serial eeprom. 109 eeprom chip select eecs o4 output. serial eeprom chip select. 108 eeprom data out eedo/ sdout o4 output. connected to the di input of the serial eeprom. 107 eeprom data in eedi i with pull- down input. connected to the do output of the serial eeprom. 103, 105, 106 i/o base ios0-ios2 i with pullup input. external switches can be connected to these lines to select between predefined eeprom configurations. the values of these pins are readable. these pins are used in isa mode only. if in pcmcia mode, these pins are not used. 9 ntransmit led ntxled od16 internal endec - transmit led output. ntransmit enable ntxen o162 external endec - active low transmit enable output. 12 nroard select led nbseled od16 internal endec - board select led activated by accesses to i/o space (niord or niowr active with aen low and valid address decode for isa, and with nreg low and and ?enable function? bit in the ecor register is high for pcmcia). the pulse is stretched beyond the access duration to make the led visible. receive data rxd i with pullup external endec - nrz receive data input.
15 description of pin functions pin no. name symbol type description 10 nreceive led nrxled od16 internal endec - receive led output. receive clock rxclk i with pullup external endec - receive clock input. 11 nlink led nlnkled od16 internal endec - link led output. transmit data txd 0162 external endec - transmit data output. 111 enable eeprom eneep i with pullup input. this active high input enables the eeprom to be read or written by the SMC91C95. internally pulled up. must be connected to ground if no serial eeprom is used. in pcmcia mode, a parallel eeprom is required if no serial eeprom is used. 115 nenable 16 bit nen16 i with pullup input. when low the SMC91C95 is configured for 16 bit bus operation. if left open the SMC91C95 works in 8 bit bus mode. 16 bit configuration can also be programmed via serial eeprom (in isa mode only) or via software initialization of the configuration register. 10 1 102 crystal 1 crystal 2 xtal1 xtal2 iclk an external parallel resonance 20 mhz crystal should be connected across these pins. if an external clock source is used, it should be connected to xtal1 and xtal2 should be left open. 123 124 aui receive recp recn diff. input aui receive differential inputs. 2 3 aui transmit txp/ncoll txn/ncrs diff. output internal endec - (nxendec pin open). in this mode txp and txn are the aui transmit differential outputs. they must be externally pulled up using 150 ohm resistors. i external endec - (nxendec pin tied low). in this mode the pins are inputs used for collision and carrier sense functions.
16 description of pin functions pin no. name symbol type description 125 126 aui collision colp coln diff. input aui collision differential inputs. a collision is indicated by a 10 mhz signal at this input pair. 121 122 tpe receive tperxp tperxn diff. input 10base-t receive differential inputs. 4 6 tpe transmit tpetxp tpetxn diff. output internal endec - 10base-t transmit differential outputs. 5 7 tpe transmit delayed tpetxdp tpetxdn diff. output 10base-t delayed transmit differential outputs. used in combination with tpetxp and tpetxn to generate the 10base-t transmit pre-distortion. 114 powerdown pwrdwn i with pullup internal endec - powerdown input. it keeps the SMC91C95 in powerdown mode when high (open). must be low for normal operation. refer to the powerdown matrix following for further details. transmit clock txclk external endec - transmit clock input from external endec 99 nwakeup enable nwakeup- en i with pullup input. when pulled down, the device will enable magic packet (mp) logic and put the ethernet function in powerdown mode. the pin assertion will override the state of wakeup_en and pwrdn bits in ctr, pwrdwn bit in ecsr, and enable function bit ecor. when deasserted, the wakeup_en and pwrdn bits will be changed to (0), pwrdwn to (0), and enable function to (1). 100 wakeup wakeup o 4 output. asserted high if nwakeup_en is asserted and a valid magic packet (mp) pattern is detected. the pin remains asserted until nwakeup_en is deasserted. 118 bias resistor rbias analog input a 22 kohm 1% resistor should be connected between this pin and analog ground.
17 description of pin functions pin no. name symbol type description 116 nexternal endec nxendec i with pullup when tied low the SMC91C95 is configured for external endec. when tied high or left open the SMC91C95 will use its internal encoder/decoder. 13, 25, 37, 51, 62, 71, 80, 89, 104 power vdd +5v power supply pins 1, 117, 120 analog power avdd +5v analog power supply pins 19, 30, 44, 58, 67, 75, 84, 94, 112 ground vss ground pins 8, 119, 127 analog ground avss analog ground pins buffer types o4 output buffer with 2ma s ource and 4ma sink o162 output buffer with 2ma source and 16ma sink o24 output buffer with 12ma source and 24ma sink od16 open drain buffer with 16ma sink od24 open drain buffer with 24ma sink i/o24 bidirectional buffer with 12ma source and 24ma sink i input buffer with ttl levels is input buffer with schmitt trigger hysteresis iclk clock input buffer
18 figure 1 - SMC91C95 system block diagram for isa bus with boot prom t p e t x p t p e t x n t p e t x d p t p e t x d n t p e r x p t p e r x n t x p t x n r e c p r e c n c o l p c o l n x t a l 1 x t a l 2 e e d i e e c s e e d o e e s k i o s 0 i o s 1 i o s 2 n e n 1 6 e n e e p a e n b a l e r e s e t n s b h e n i o r d , n i o w r , n m e m r d 0 - 1 5 a 0 - 1 9 n r o m n i o c s 1 6 i o c h r d y i n t r 0 - 3 4 d i a g n o s t i c l e d s s e r i a l e e p r o m 4 2 0 m h z 3 s y s t e m b u s a d d r e s s p r o m d a t a n i r q 4 n / c r b i a s b u f f e r s m c 9 1 c 9 5 cable side 10baset aui
19 figure 2 - SMC91C95 system block diagram for dual function pcmcia card modem chipset SMC91C95 nce1 nce2 nreg nwe nireq d0-d15 reset niord niowr a0-a9, a15 niois16 ninpack nwait nce nwe noe noe d0-d7 a0-x pcmcia connector 10base-t/aui interface nreset int ncs rdy pwdn ringin stschg ringoutb spkrout phone line nmreset mint nmcs mrdy mpwdn mringin mringob nfwe nfcs spkrin spkr cs,sk,di,do serial eprom (isa-hy9346) (pcmcia-hy93c66) extended attribute eprom 2816 (optional)
20 figure 3 - SMC91C95 internal block diagram modem interface twisted pair transceiver data bus address bus control bus interface arbiter csma/cd endec aui mmu 10base-t ram management
21 functional description the SMC91C95 consists of an integrated ethernet controller mapped entirely in i/o space, as well as support for an external modem controller also mapped in i/o space. in addition, pcmcia attribute memory space is decoded to interface an external cis rom, with configuration registers as per pcmcia 3.x extensions implemented on-chip in attribute space above the cis rom decode area. the pcmcia configuration registers are accessible also in i/o space to allow non-pcmcia dual function designs. the ethernet controller function includes a built-in 6kbyte ram for packet storage. this ram buffer is accessed by the cpu through two sequential access regions of 3 kbytes each. the ram access is internally arbitrated by the SMC91C95 and dynamically allocated between transmit and receive packets using 256 byte pages. the ethernet controller functionality is identical to the smc91c94 except where indicated otherwise. table 1 - bus transactions in isa mode a0 nsbhe d0-d7 d8-d15 8 bit mode (nen16=1) 0 x even byte - (16 bit=0) 1 x odd byte - 16 bit mode 0 0 even byte odd byte otherwise 0 1 even byte - 1 0 - odd byte 1 1 invalid cycle
22 table 2 - bus transactions in pcmcia mode a0 nce1 nce2 d0-d7 d8-d15 8 bit mode ((iois8=1) + (nen16=1).(16bit=0)) 0 0 x even byte - 1 0 x odd byte - x 1 x no cycle 16 bit mode 0 0 0 even byte odd byte otherwise 0 0 1 even byte - 1 0 1 odd byte x 1 0 - odd byte x 1 1 no cycle 16bit = configuration register bit 7 iois8 = ecsr register bit 5 nen16 = pin nen16 for the modem function, the transactions are similarxcept that the modem is assumed to be 8 bit wide unless (iois8=0) and (nmis16=0). note: the iois8 value should be identical in mcsr and ecsr if both functions are enabled. 8 bit mode = (iois8=1)+(nmis16=1)
23 table 3 - SMC91C95 address spaces signals used isa pcmci a on-chip depth width pcmcia attribute memory noe nwe n y n (external rom) up to 32k locations, only even bytes are usable 8 bits on even addresses pcmcia configuration registers noe nwe n y y 64 locations, only even bytes are usable 8 bits modem i/o space niord niowr y y n 8 locations 8 bit ethernet i/o space (1) niord niowr y y y 16 locations 8 or 16 bits (1) this space also allows access to the pcmcia configuration register through banks 4 and 5 (SMC91C95 only). except for the bus interface, the functional behavior of the SMC91C95 after initial configuration is identical for isa and pcmcia modes. the SMC91C95 includes an arbitrated shared memory of 6 kbytes accessed by the cpu. the mmu unit allocates ram memory to be used for transmit and receive packets, using 256 byte pages. the arbitration is transparent to the cpu in every sense. there is no speed penalty for isa type of machines due to arbitration. there are no restrictions on what locations can be accessed at any time. ram accesses as well as mmu requests are arbitrated. the ram is accessed by mapping it into i/o space for sequential access. except for the ram accesses and the mmu request/release commands, i/o accesses are not arbitrated. the i/o space is 16 bits wide. provisions for 8 bit systems are handled by the bus interface. in the system memory space, up to 64 kbytes are decoded by the SMC91C95 as expansion rom. the rom expansion area is 8 bits wide. device configuration is done using a serial eeprom, with support for modifications to the eeprom at installation time. a flash rom is supported for pcmcia attribute memory. the csma/cd core implements the 802.3 mac layer protocol. it has two independent interfaces, the data path and the control path. both interfaces are 16 bits wide. the control path provides a set of registers used to configure and control the block. these registers are accessible by the cpu through the SMC91C95?s i/o space. the data path is of sequential access nature and typically works in one direction at any given time. an internal dma type of interface connects the data path to the device ram through the arbiter and mmu. the csma/cd data path interface is not accessible to the host cpu.
24 the internal dma interface can arbitrate for ram access and request memory from the mmu when necessary. an encoder/decoder block interfaces the csma/cd block on the serial side. the encoder will do the manchester encoding of the transmit data at 10 mbps, while the decoder will recover the receive clock and decode received data. carrier and collision detection signals are also handled by this block and relayed to the csma/cd block. the encoder/decoder block can interface the network through the aui interface pairs or it can be programmed to use the internal 10base-t transceiver and connect to a twisted pair network. the twisted pair interface takes care of the medium dependent signaling for 10base-t type of networks. it is responsible for line interface (with external pulse transformers and pre-distortion resistors), collision detection as well as the link integrity test function. the SMC91C95 provides a 16-bit data path into ram. the ram is private and can only be accessed by the system via the arbiter. ram memory is managed by the mmu. byte and word accesses to the ram are supported. if the system to sram bandwidth is insufficient, the SMC91C95 will automatically use its iochrdy line for flow control. however, for isa buses, iochrdy will never be negated. buffer memory the logical addresses for ram access are divided into tx area and rx area. each one of the areas is 1.536 kbytes long and accommodates one maximum size ethernet packet. the tx area is seen by the cpu as a window through which packets can be loaded into memory before queuing them in the tx fifo of packets. the tx area can also be used to examine the transmit completion status after packet transmission. the rx area is associated to the output of the rx fifo of packets, and is used to access receive packet data and status information. the logical address is specified by loading the address pointer register. the pointer can automatically increment on accesses. all accesses to the ram are done via i/o space. a bit in the address pointer also specifies if the address refers to the tx or rx area. in the tx area, the host cpu has access to the next transmit packet being prepared for transmission. in the rx area, it has access to the first receive packet not processed by the cpu yet. the fifo of packets, existing beneath the tx and rx areas, is managed by the mmu. the mmu dynamically allocates and releases memory to be used by the transmit and receive functions. the mmu related parameters for the SMC91C95 are: ram size 6 kbytes (internal) max. number of packets 24 max. pages per packet 6 max. number of pages 24 page size 256 bytes
25 figure 4 - mapping and paging vs. receive and tx area page = 256 bytes physical memory tx packet number rx packet number mmu mmu 2k tx area 2k rx area 11-bit logical address pointer register rcv bit rcv vs. tx area selection
26 figure 5 - transmit queues and mapping b a b c status count data status count data packet #a packet #b packet number register tx fifo to csma linear address mmu mapping memory cpu side status count data packet #c tx completion fifo fifo ports register c
27 figure 6 - receive queue and mapping d e d e status count data status count data packet #d packet #e fifo ports register rx fifo from csma linear address mmu mapping memory cpu side
28 figure 7 - SMC91C95 internal block diagram with data path b u s i n t e r f a c e a r b i t e r m m u b u f f e r r a m c s m a / c d e n d e c t w i s t e d p a i r t r a n s c e i v e r a u i 1 0 b a s e t d a t a b u s a d d r e s s b u s c o n t r o l e e p r o m e e p r o m w r i t e d a t a r e g . r e a d d a t a r e g . t x f i f o t x c o m p l f i f o r x f i f o d m a i n t e r f a c e a d d r e s s d a t a
29 packet format in buffer memory the packet format in memory is similar for the transmit and receive areas. the first word is reserved for the status word, the next word is used to specify the total number of bytes, and that in turn is followed by the data area. the data area holds the packet itself, and its length is determined by the byte count. the packet memory format is word oriented. figure 8 - data packet format transmit packet receive packet status word written by csma upon transmit completion (see status register). written by csma upon receive completion (see rx frame status word). byte count written by cpu. written by csma. data area written by cpu. written by csma. control byte written by cpu to control odd/even data bytes. written by csma. also has odd/even bit. reserved byte count (always even) status word data area last data byte (if odd) bit0 bit15 ram offset (decimal) 0 2 4 1536 max control byte
30 byte count - divided by two, it defines the total number of words including the status word, the byte count word, the data area and the control byte. the receive byte count always appears as even; the oddfrm bit of the receive status word indicates if the low byte of the last word is relevant. the transmit byte count least significant bit will be assumed 0 by the controller regardless of the value written in memory. data area - the data area starts at offset 4 of the packet structure and can extend up to 1536 bytes. the data area contains six bytes of destination address followed by six bytes of source address, followed by a variable-length number of bytes. on transmit, all bytes are provided by the cpu, including the source address. the SMC91C95 does not insert its own source address. on receive, all bytes are provided by the csma side. the 802.3 frame length word (frame type in ethernet) is not interpreted by the SMC91C95. it is treated transparently as data both for transmit and receive operations. control byte - the control byte always resides on the high byte of the last word. for transmit packets the control byte is written by the cpu as: x x odd crc 0 0 0 0 odd - if set, indicates an odd number of bytes, with the last byte being right before the control byte. if clear, the number of data bytes is even and the byte before the control byte is not transmitted. crc - when set, crc will be appended to the frame. this bit has only meaning if the nocrc bit in the tcr is set. for receive packets the control byte is written by the controller as: 0 1 odd 0 0 0 0 0 odd - if set, indicates an odd number of bytes, with the last byte being right before the control byte. if clear, the number of data bytes is even and the byte before the control byte should be ignored.
31 receive frame status word this word is written at the beginning of each receive frame in memory. it is not available as a register. high byte algn err brod cast bad crc odd frm tooln g too short low byte hash value mult cast 5 4 3 2 1 0 algnerr - frame had alignment error. brodcast - receive frame was broadcast. badcrc - frame had crc error. oddfrm - this bit when set indicates that the received frame had an odd number of bytes. toolng - the received frame is longer than 802.3 maximum size (1518 bytes on the cable). tooshort - the received frame is shorter than 802.3 minimum size (64 bytes on the cable). hash value - provides the hash value used to index the multicast registers. can be used by receive routines to speed up the group address search. the hash value consists of the six most significant bits of the crc calculated on the destination address, and maps into the 64 bit multicast table. bits 5,4,3 of the hash value select a byte of the multicast table, while bits 2,1,0 determine the bit within the byte selected. examples of the address mapping: address hash value 5-0 multicast table bit ed 00 00 00 00 00 0d 00 00 00 00 00 01 00 00 00 00 00 2f 00 00 00 00 00 000 000 010 000 100 111 111 111 mt-0 bit 0 mt-2 bit 0 mt-4 bit 7 mt-7 bit 7 multcast - receive frame was multicast. if hash value corresponds to a multicast table bit that is set, and the address was a multicast, the packet will pass address filtering regardless of other filtering criteria.
32 interrupt structure the SMC91C95 merges two main interrupt sources into a single interrupt line. one source is the ethernet interrupt and the other is the modem interrupt. the ethernet interrupt is conceptually equivalent to the smc91c92 interrupt line; it is the or function of all enabled interrupts within the ethernet core. the modem interrupt is an input pin (mint). the enabling, reporting and clearing of these two sources is controlled by the ecor, ecsr, mcor and mcsr registers. the interrupt structure is similar for isa and pcmcia modes with the following exceptions: a) pcmcia uses a single interrupt pin (nireq) while isa can use any of four intr0-intr3 pins. b) pcmcia defaults to ethernet interrupts disabled (enable ireq=0 in ecor), while isa defaults to ethernet interrupts enabled. the following table summarizes the interrupt merging: table 4 - SMC91C95 interrupt merging function pcmcia mode isa mode interrupt output nireq when either function is enabled. when both functions are disabled the nireq is used to report the latched value of mrdy. intr0-intr3 ethernet interrupt source or function of all interrupt bits specified in the interrupt status register anded with their respective enable bits. modem interrupt source mint input pin. ethernet interrupt enable enable ireq bit in ecor. this bit defaults low in pcmcia mode. enable ireq bit in ecor. this bit defaults high in isa mode. modem interrupt enable enable ireq bit in mcor. this bit defaults low. ethernet interrupt status bit intr bit in ecsr. modem interrupt status bit intr bit in mcsr.
33 r eset logic the pins and bits involved in the different reset mechanisms are: reset - input pin por - internal circuit activated by power on nmreset - output pin to reset modem sreset - soft reset bit in ecor and mcor, one sreset bit for each function. soft rst - eph soft reset bit in rcr table 5 - reset functions resets the following functions activates samples isa vs. pcmcia mode triggers eeprom read reset pin all internal logic nmreset yes yes por circuit generates an internal reset of at least 15 msec, with same effect as the reset pin ecor register sreset bit the ethernet controller function and ethernet pcmcia configuration registers except for the bit itself no no mcor register sreset bit the modem controller function and modem pcmcia configuration registers except for the bit itself no no soft rst the ethernet controller itself except for the ia, conf, and base registers. it does not reset any pcmcia configuration register. no no
34 powerdown logic the pins and bits involved in powerdown are: 1. pwrdwn/txclk - input pin valid when xendec is not zero (0). 2. pwrdwn bits in ecsr and mcsr registers - one bit for each function 3. enable function bits in ecor and mcor registers - one bit for each function 4. pwrdn - ethernet powerdown bit in control register. 5. wakup_en - magic packet receive enable bit in the control register 6. nwakeup - pin for magic packet receive + ethernet function powerdown SMC91C95 powerdown states: a) the SMC91C95 is off and no clock is running b1) the SMC91C95 of off with clock running (no active lan or host data transfer) tbd current reduction with no link pulses for lan access b2) the SMC91C95 of off with clock running (no active lan or host data transfer) tbd current reduction with link active c) the SMC91C95 is completely powered up (with active lan or host data transfer) 80ma max, 40ma typ. table 6 - powerdown functions powerdown entered powerdown exited powers down: does not power down (a) pwrdwn/ txclk pin when pin is high and reset is inactive when pin goes low ethernet function including link circuitry; modem function (b1) ecor and ecsr powerdown bits pwrdwn bit in ecsr is high or enable function bit in ecor is low. otherwise, or when function is reset in isa mode ethernet function plus any analog logic including link logic modem function, attribute memory and pcmcia configuration registers access (b2) power state mcor and mcsr bits pwrdwn bit in mcsr is high or enable function bit in mcor is low. otherwise; or ringing from modem chipset modem ethernet function, attribute memory and pcmcia configuration registers access (b2) power state wakup_en (control register) pwrdwn bit in ecsr is high or enable function bit in ecor is low or pwrdn bit in control register is high magic packet received (wakup in eph status) ethernet mac logic (link is enabled) modem function, attribute memory and pcmcia configuration registers access, link logic
35 table 6 - powerdown functions powerdown entered powerdown exited powers down: does not power down (b2) power state nwakeup (pin) when pin is low and reset is inactive when pin goes high ethernet function (link logic enabled) modem function, attribute memory and pcmcia configuration registers access, link logic (b2) power state pwrdn bit in control register when bit is set write access to i/o space or reset ethernet function. modem function, attribute memory and pcmcia configuration registers access pcmcia attribute memory: address 0- 7ffeh the attribute memory is implemented using a combination of interrnal sram and external parallel eeprom, rom or flash rom. the internal sram is initialized during power up using the serial eeprom. this serial eeprom in pcmcia mode is used for the cis (card information structure). if no serial eeprom is used, the parallel eeprom must be used. internal cis ram address space is replaced by part of the external parallel eeprom in this case. in isa mode, the serial eeprom is used for configuration and ieee node address making it software compatible to the smc9000 family of ethernet lan controllers. in isa mode, the eeprom is optional requiring a minimum size of 64 x 16 bit word addresses. in pcmcia mode, the minimum serial eeprom (if used) size can be 64 x 16 up to 256 x 16. this combination of internal and external attribute memory allows the designer to reduce costs by using a serial eeprom device when using up to 512 bytes of ?card information? and, if additional memory is needed, an external eeprom may be used. when the SMC91C95 goes into powerdown mode, the internal cis data buffer ram is re- initialized. the SMC91C95 generates the appropriate control lines (nfcs and nfwe) to read and write the attribute memory, and it tri-states the data bus during external attribute memory accesses. note that the parallel eeprom is selected for the first 512 byte cis information also in the absence of the serial eeprom in pcmcia mode. only even locations are used. pcmcia configuration registers: address 8000-803eh the pcmcia configuration registers are stored inside the SMC91C95 above the external attribute memory address space. these registers are used to configure and control the pcmcia related functionality of the ethernet and modem functions. these registers are eight bits wide and reside on even locations. the SMC91C95 ignores odd accesses to this area (ignore writes, do not drive the bus on reads). this address offset has been changed from prior smc9000 pcmcia designs to allow a larger address range for other attribute memory data. this data could be a larger card information structure or a xip data image.
36 internal vs external attribute memory map the internal vs external eprom attribute memory decodes are shown below. this allows the designer to not require an external eprom device if the single or multi-function pcmcia card needs less than 512 bytes of configuration information. as can be seen in the map, if 512 bytes of cis or less is required, the nfcs and nfwe output pins of the SMC91C95 need not be used (if serial eeprom is being used). internal to the SMC91C95, the memory addressing logic will allow byte or word on odd byte address access (a0=1), the SMC91C95 will generate an arbitrary value of zero (0) since the pcmcia specification states that the high byte of a word access in attribute memory is a don?t care. this allows backward compatibility to 8 bit hosts. table 7 - attribute memory address using serial eeprom attribute memoryaddress external eprom store internal sram store (512 bytes) configuration registers 0 - 3feh x 400h-7ffeh x 8000h - 803eh x table 8 - attribute memory address without serial eeprom attribute memoryaddress external eprom store internal sram store (512 bytes) configuration registers 0 - 7ffeh x 8000h - 803eh x
37 i/o space (isa and pcmcia mode) in isa mode, the base i/o space is determined by the ios0-ios2 inputs and the eeprom contents. a4-a15 are compared against the base i/o address for i/o space accesses. in pcmcia mode nreg (along with niord or niowr) defines an i/o access regardless of the a4-a15 value. to limit the i/o space requirements to 16 locations, the registers are assigned to different banks. the last word of the i/o area is shared by all banks and can be used to change the bank in use. registers are described using the following convention: offset name type symbol high byte bit 15 bit 14 bit 13 bit 12 bit 11 bit 10 bit 9 bit 8 x x x x x x x x low byte bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 x x x x x x x x offset - defines the address offset within the iobase where the register can be accessed at, provided the bank select has the appropriate value. the offset specifies the address of the even byte (bits 0-7) or the address of the complete word. the odd byte can be accessed using address (offset + 1). some registers (like the interrupt ack., or like interrupt mask) are functionally described as two eight bit registers; in that case the offset of each one is independently specified. regardless of the functional description, when the SMC91C95 is in 16 bit mode, all registers can be accessed as words or bytes. the default bit values upon hard reset are highlighted below each register.
38 table 9 - internal i/o space mapping bank0 bank1 bank2 bank3 bank4 bank5 0 tcr config mmu command mt0-mt1 ecor (low byte) ecsr (high byte) mcor (low byte) mcsr (high byte) 2 eph status base pnr arr mt2-mt3 prr (low byte) 4 rcr ia0-ia1 fifo ports mt4-mt5 ebase0 (high byte) ioeir (low byte) mbase0 (high byte) 6 counter ia2-ia3 pointer mt6-mt7 ebase1 (low byte) mbase1 (low byte) 8 mir ia4-ia5 data mgmt msize (high byte) a mcr general purpose data revision c reserved (0) control interrupt ercv e bank select bank select bank select bank select
39 bank select register offset name type symbol e bank select register read/write bsr high byte 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 low byte bs2 bs1 bs0 x x x x x 0 0 0 bs2, bs1, bs0 - determine the bank presently in use. the bank select register is always accessible except in pcmcia powerdown mode and is used to select the register bank in use. the upper byte always reads as 33h and can be used to help determine the i/o location of the SMC91C95. the bank select register is always accessible regardless of the value of bs0-bs2. the SMC91C95 implements only four banks in isa mode, therefore, accesses to non-existing banks (bs2=1) are ignored. all six banks are accessible in pcmcia mode. bs2 bs1 bs0 bank# 0 0 0 0 1 0 0 1 1 x 0 1 0 1 x 0 1 2 3 none
40 i/o space - bank0 offset name type symbol 0 transmit control register read/write tcr this register holds bits programmed by the cpu to control some of the protocol transmit options. high byte fdse eph loop stp sqet fdupl x mon_ csn nocrc 0 x 0 0 0 0 x 0 low byte pad_e n forco l loop txena 0 x x x x 0 0 0 fdse - full duplex switched ethernet. when set, the SMC91C95 is configured for full duplex switched ethernet, it defaults clear to normal csma/cd protocol. in fdse mode the SMC91C95 transmit and receive processes are fully independent, namely no deferral and no collision detection are implemented. when fdse is set, fduplx is internally assumed high and mon_csn is assumed low regardless of their actual values. eph_loop - internal loopback at the eph block. does not exercise the encoder decoder. serial data is looped back when set. defaults low. note: after exiting the loopback test, an sreset in the ecor or the soft_rst in the rcr must be set before returning to normal operation. stp_sqet - stop transmission on sqet error. if set, stops and disables transmitter on sqe test error. does not stop on sqet error and transmits next frame if clear. defaults low. fduplx - when set, it enables full duplex operation. this will cause frames to be received if they pass the address filter regardless of the source for the frame. when clear the node will not receive a frame sourced by itself. clearing this bit (normal operation) in promiscuous mode allows it to not receive its own packet. mon_csn - when set, the SMC91C95 monitors carrier while transmitting. it must see its own carrier by the end of the preamble. if it is not seen, or if carrier is lost during transmission, the transmitter aborts the frame without crc and turns itself off. when this bit is clear the transmitter ignores its own carrier. defaults low. nocrc - does not append crc to transmitted frames when set; allows software to insert the desired crc. defaults to zero, namely crc inserted. pad_en - when set, the SMC91C95 will pad transmit frames shorter than 64 bytes with 00. does not pad frames when reset. forcol - when set, the transmitter will force a collision by deliberately not deferring. after the collision, this bit is automatically reset. this bit defaults low to normal operation. note: the latcol bit in ephsr, setting up as a result of forcol, will reset txena to 0. in order to force another collision, txena must be set to 1 again.
41 loop - local loopback. when set, transmit frames are internally looped to the receiver after the encoder/decoder. collision and carrier sense are ignored. no data is sent out. defaults low to normal mode. txena - transmit enabled when set. transmit is disabled if clear. when the bit is cleared, the SMC91C95 will complete the current transmission before stopping. when stopping due to an error, this bit is automatically cleared. aui fdse fduplx eph_loop loop loops at transmits to network x x x 1 x eph block no x x 1 0 1 endec no 1 0 1 0 0 cable yes 0 0 1 0 0 10base-t driver yes x 0 0 0 0 normal csma/cd - no loopback yes x 1 1 0 0 full duplex switched ethernet - no loopback and no sqet yes
42 i/o space - bank0 offset name type symbol 2 eph status register read only ephsr this register stores the status of the last transmitted frame. this register value, upon individual transmit packet completion, is stored as the first word in the memory area allocated to the packet. packet interrupt processing should use the copy in memory as the register itself will be updated by subsequent packet transmissions. the register can be used for real time values (like txena and link ok). if txena is cleared the register holds the last packet completion status. high byte tx unrn link_ ok rx_ ovrn ctr _rol exc _def lost carr latcol wakeu p 0 0 0 0 0 0 0 0 low byte tx defr ltx brd sqet 16col ltx mult mul col sngl col tx_su c 0 0 0 0 0 0 0 0 txunrn - transmit underrun. set if underrun occurs, it also clears txena bit in tcr. cleared by setting txena high. this bit may only be set if early tx is being used. link_ok - state of the 10base-t link integrity test. a transition on the value of this bit generates an interrupt when the le enable bit in the control register is set. rx_ovrn - upon fifo overrun, the receiver asserts this bit and clears the fifo. the receiver stays enabled. after a valid preamble has been detected on a subsequent frame, rx_ovrn is de- asserted. the rx_ovrn int bit in the interrupt status register will also be set and stay set until cleared by the cpu. note that receive overruns could occur only if receive memory allocations fail. ctr_rol - counter roll over. when set one or more 4 bit counters have reached maximum count (15). cleared by reading the ecr register. exc_def - excessive deferral. when set last/current transmit was deferred for more than 1518 * 2 byte times. cleared at the end of every packet sent. lost_carr - lost carrier sense. when set indicates that carrier sense was not present at end of preamble. valid only if mon_csn is enabled. this condition causes txena bit in tcr to be reset. cleared by setting txena bit in tcr. latcol - late collision detected on last transmit frame. if set a late collision was detected (later than 64 byte times into the frame). when detected the transmitter jams and turns itself off clearing the txena bit in tcr. cleared by setting txena in tcr. wakeup - when this bit is set, it indicates that a receive packet was received that had the ?magic packet? (mp) signature of the node?s own ip address repetitions in it. this bit indicates a valid
43 detection for magic packet - enabled by nwakeupen pin (92 qfp) or wakeup_en in ctr. note: if the mp mode is activated using the nwakeupen pin, the pin must be deasserted to exit the mode. tx_defr - transmit deferred. when set, carrier was detected during the first 6.4 m sec of the inter frame gap. cleared at the end of every packet sent. ltx_brd - last transmit frame was a broadcast. set if frame was broadcast. cleared at the start of every transmit frame. sqet - signal quality error test. the transmitter opens a 1.6 m sec window 0.8 m sec after transmission is completed and the receiver returns inactive. during this window, the transmitter expects to see the sqet signal from the transceiver. the absence of this signal is a 'signal quality error' and is reported in this status bit. transmission stops and eph int is set if stp_sqet is in the tcr is also set when sqet is set. this bit is cleared by setting txena high. 16col - 16 collisions reached. set when 16 collisions are detected for a transmit frame. txena bit in tcr is reset. cleared when txena is set high. ltx_mult - last transmit frame was a multicast. set if frame was a multicast. cleared at the start of every transmit frame. mulcol - multiple collision detected for the last transmit frame. set when more than one collision was experienced. cleared when tx_suc is high at the end of the packet being sent. snglcol - single collision detected for the last transmit frame. set when a collision is detected. cleared when tx_suc is high at the end of the packet being sent. tx_suc - last transmit was successful . set if transmit completes without a fatal error. this bit is cleared by the start of a new frame transmission or when txena is set high. fatal errors are: 16 collisions sqet fail and stp_sqet = 1 fifo underrun carrier lost and mon_csn = 1 late collision
44 i/o space - bank0 offset name type symbol 4 receive control register read/write rcr high byte soft_ rst filt_ car 0 0 0 0 strip_ crc rxen 0 0 0 0 0 0 0 0 low byte almul prms rx_ abort 0 0 0 0 0 0 0 0 soft_rst - software activated reset. active high. initiated by writing this bit high and terminated by writing the bit low. the SMC91C95 configuration is not preserved, except for configuration, base, and ia0-ia5 registers. the eeprom in both isa and pcmcia mode is not reloaded after software reset. filt_car - filter carrier. when set filters leading edge of carrier sense for 12 bit times. otherwise recognizes a receive frame as soon as carrier sense is active. strip_crc - when set it strips the crc on received frames. when clear the crc is stored in memory following the packet. defaults low. rxen - enables the receiver when set. if cleared, completes receiving current frame and then goes idle. defaults low on reset. almul - when set accepts all multicast frames (frames in which the first bit of da is '1'). when clear accepts only the multicast frames that match the multicast table setting. defaults low. prms - promiscuous mode. when set receives all frames. does not receive its own transmission unless it is in full duplex. rx_abort - this bit is set if a receive frame is aborted due to length longer than 1532 bytes. the frame will not be received. the bit is cleared by reset or by the cpu writing it low. rx_abort rx_ovrn_int packet too long 1 0 run out of memory during receive 1 1
45 i/o space - bank0 offset name type symbol 6 counter register read only ecr counts four parameters for mac statistics. when any counter reaches 15 an interrupt is issued. all counters are cleared when reading the register and do not wrap around beyond 15. high byte number of exc. deffered tx number of deffered tx 0 0 0 0 0 0 0 0 low byte multiple collision count single collision count 0 0 0 0 0 0 0 0 each four bit counter is incremented every time the corresponding event, as defined in the eph status register bit description, occurs. note that the counters can only increment once per enqueued transmit packet, never faster, limiting the rate of interrupts that can be generated by the counters. for example if a packet is successfully transmitted after one collision the single collision count field is incremented by one. if a packet experiences between 2 to 16 collisions, the multiple collision count field is incremented by one. if a packet experiences deferral the number of deferred tx field is incremented by one, even if the packet experienced multiple deferrals during its collision retries. the counter register facilitates maintaining statistics in the auto release mode where no transmit interrupts are generated on successful transmissions. reading the register in the transmit service routine will be enough to maintain statistics.
46 i/o space - bank0 offset name type symbol 8 memory information register read only mir high byte free memory available (in bytes * 256 * m) 0 0 0 1 1 0 0 0 low byte memory size (in bytes *256 * m) 0 0 0 1 1 0 0 0 free memory available - this register can be read at any time to determine the amount of free memory. the register defaults to the memory size upon reset or upon the reset mmu command. memory size - this register can be read to determine the total memory size, and will always read 18h (6144 bytes) for the SMC91C95. memory size register m actual memory smc91c90 ffh 1 64 kbytes smc91c90 40h 1 16 kbytes smc91c92/4 12h 1 4608 bytes SMC91C95 18h 1 6144 bytes smc91c100 ffh 2 128 kbytes
47 i/o space - bank0 offset name type symbol a memory configuration register lower byte - read/write upper byte - read only mcr high byte memory size multiplier 0 0 1 1 0 0 1 1 low byte memory reserved for transmit (in bytes * 256 * m) 0 0 0 0 0 0 0 0 memory reserved for transmit - programming this value allows the host cpu to reserve memory to be used later for transmit, limiting the amount of memory that receive packets can use up. when programmed for zero, the memory allocation between transmit and receive is completely dynamic. when programmed for a non-zero value, the allocation is dynamic if the free memory exceeds the programmed value, while receive allocation requests are denied if the free memory is less or equal to the programmed value. this register defaults to zero upon reset. it is not affected by the reset mmu command. the value written to the mcr is a reserved memory space in addition to any memory currently in use. if the memory allocated for transmit plus the reserved space for transmit is required to be constant (rather than grow with transmit allocations) the cpu should update the value of this register after allocating or releasing memory. the contents of mir as well as the low byte of mcr are specified in 256 * m bytes. the multiplier m is determined by bits 11,10, and 9 as follows. bits 11,10 and 9 are read only bits used by the software driver to transparently run on different controllers of the smc9000 family. device bit 11 bit 10 bit 9 m max memory size feast 0 1 0 2 256*256*2=128k smc91c90 0 0 1 1 256*256*1=64k future 0 1 1 4 256k future 1 0 0 8 512k future 1 0 1 16 1m
48 i/o space - bank1 offset name type symbol 0 configuration register read/write cr the configuration register holds bits that define the device configuration and are not expected to change during run-time. this register is part of the eeprom saved setup in isa mode only. in pcmcia mode, this register is initialized to the state as defined below the corresponding bits as if no eeprom was present in isa mode (i.e. eneep pin is a don?t care in pcmcia mode). high byte 0 no wait full step set sqlch aui selec t 0 x x 0 x 0 0 0 low byte 16 bit dis link reserved int sel1 int sel0 function of en16 pin 0 1 1 0 0 0 x no wait - when set, does not request additional wait states. an exception to this are accesses to the data register if not ready for a transfer. when clear, negates iochrdy for two to three 20 mhz clocks on any cycle to the SMC91C95. full step - this bit is used to select the signaling mode for the aui port. when set the aui port uses full step signaling. defaults low to half step signaling. this bit is only meaningful when aui select is high. set sqlch - when set, the squelch level used for the 10base-t receive signal is 240mv. when clear the receive squelch level is 400mv. defaults low. aui select - when set the aui interface is used, when clear the 10base-t interface is used. defaults low. 16bit - used in conjunction with nen16 and iois8 (in pcmcia mode only) to define the width of the system bus. if the nen16 pin is low, this bit is forced high. otherwise the bit defaults low and can be programmed by the host cpu. dis link - this bit is used to disable the 10base- t link test functions. when this bit is high the SMC91C95 disables link test functions by not generating nor monitoring the network for link pulses. in this mode the SMC91C95 will transmit packets regardless of the link test, the ephsr link_ok bit will be set and the link led will stay on. when low the link test functions are enabled. if the link status indicates fail, the ephsr link_ok bit will be low, while transmit packets enqueued will be processed by the SMC91C95, transmit data will not be sent out to the cable. int sel1-0 - in isa mode, used to select one out of four interrupt pins. the three unused interrupts are tristated.
49 int sel1 int sel0 interrupt pin used 0 0 1 1 0 1 0 1 intr0 intr1 intr2 intr3
50 i/o space - bank1 offset name type symbol 2 base address register read/write bar for isa mode only, this register holds the i/o address decode option chosen for the i/o and rom space. it is part of the eeprom saved setup, and is not usually modified during run-time. note: this register should only be used in isa mode. in pcmcia mode, this register is read only. high byte a15 a14 a13 a9 a8 a7 a6 a5 0 0 0 1 1 0 0 0 low byte rom size ra18 ra17 ra16 ra15 ra14 0 1 1 0 0 1 1 1 a15 - a13 and a9 - a5 - these bits are compared in isa mode against the i/o address on the bus to determine the iobase for SMC91C95 registers. the 64k i/o space is fully decoded by the SMC91C95 down to a 16 location space, therefore the unspecified address lines a4, a10, a11 and a12 must be all zeros. rom size - determines the rom decode area in isa mode memory space as follows: 00 = rom disable 01 = 16k: ra14-18 define rom select 10 = 32k: ra15-18 define rom select 11 = 64k: ra16-18 define rom select ra18-ra14 - these bits are compared in isa mode against the memory address on the bus to determine if the rom is being accessed, as a function of the rom size. rom accesses are read only memory accesses defined by nmemrd going low. for a full decode of the address space unspecified upper address lines have to be: a19 = "1", a20-a23 lines are not directly decoded, however isa systems will only activate nmemrd only when a20-a23=0. all bits in this register are loaded from the serial eeprom in isa mode only. in pcmcia mode, the i/o base is set to the default value (as in isa mode) as defined below. the i/o base decode defaults to 300h (namely, the high byte defaults to 18h). rom size defaults to 01. rom decode defaults to cc000 (namely the low byte defaults to 67h).
51 i/o space - bank1 offset name type symbol 4 through 9 individual address registers read/write iar these registers are loaded starting at word location 20h of the eeprom upon hardware reset or eeprom reload in isa mode only. the registers can be modified by the software driver, but a store operation will not modify (in isa mode only) the eeprom individual address contents. in pcmcia mode, the ieee individual address is stored in the eeprom, but is stored in pcmcia tuple format as defined in the metaformat specification. refer to the pcmcia v3.0 card specification on the metaformat. the SMC91C95 in pcmcia mode knows nothing about the location or structure of the ieee ethernet address stored in the eeprom. once this data is stored in the cis sram data buffer in the SMC91C95, it is parsed by the host to extract the ieee address information and stored manualy by the lan driver. bit 0 of individual address 0 register corresponds to the first bit of the address on the cable. high byte address 0 0 0 0 0 0 0 0 0 low byte address 1 0 0 0 0 0 0 0 0 high byte address 2 0 0 0 0 0 0 0 0 low byte address 3 0 0 0 0 0 0 0 0 high byte address 4 0 0 0 0 0 0 0 0 low byte address 5 0 0 0 0 0 0 0 0
52 i/o space - bank1 offset name type symbol a general purpose register read/write gpr high byte high data byte 0 0 0 0 0 0 0 0 low byte low data byte 0 0 0 0 0 0 0 0 this register can be used as a way of storing and retrieving non-volatile information in the eeprom to be used by the software driver. the storage is word oriented, and the eeprom word address to be read or written is specified using the six lowest bits of the pointer register. in pcmcia mode, bits 0 to 10 of the pointer register are used. this register can also be used to sequentially program the individual address area of the eeprom, that is normally protected from accidental store operations. this register will be used for eeprom read and write only when the eeprom select bit in the control register is set. this allows generic eeprom read and write routines that do not affect the basic setup of the SMC91C95.
53 i/o space - bank1 offset name type symbol c control register read/write ctr high byte 0 rcv_ bad pwrdwn wakeu p_en auto release 1 0 0 0 0 0 x x 1 low byte le enable cr enable te enable eeprom select reload store 0 0 0 x x 0 0 0 rcv_bad - when set, bad crc packets are received. when clear bad crc packets do not generate interrupts and their memory is released. pwrdn - active high bit used to put the ethernet function in powerdown mode. cleared by: 1. a write to any register in the SMC91C95 i/o space 2. hardware reset 3. ?magic packet? was received this bit is combined with the pwrdwn bit in ecsr and with the powerdown bit to determine when the function is powered down. wakup_en - active high bit used to enable the controller in any of the powerdown modes to power up if a ?magic packet? is detected and set the wakeup bit in the ephsr to generate an eph interrupt (if not masked). when clear (0), no ?magic packet? scanning is done on receive packets. note: if ?magic packet? is enabled using this bit only the notification is done on the wakeup bit in the ephsr only. auto release - when set, transmit pages are released by transmit completion if the transmission was successful (when tx_suc is set). in that case there is no status word associated with its packet number, and successful packet numbers are not even written into the tx completion fifo. a sequence of transmit packets will only generate an interrupt when the sequence is completely transmitted (tx empty int will be set), or when a packet in the sequence experiences a fatal error (tx int will be set). upon a fatal error txena is cleared and the transmission sequence stops. the packet number that failed is the present in the fifo ports register, and its pages are not released, allowing the cpu to restart the sequence after corrective action is taken. le enable - link error enable. when set it enables the link_ok bit transition as one of the interrupts merged into the eph int bit. defaults low (disabled). writing this bit also serves as the acknowledge by clearing previous link interrupt conditions.
54 cr enable - counter roll over enable. when set it enables the ctr_rol bit as one of the interrupts merged into the eph int bit. defaults low (disabled). te enable - transmit error enable. when set it enables transmit error as one of the interrupts merged into the eph int bit. defaults low (disabled). transmit error is any condition that clears txena with tx_suc staying low as described in the ephsr register. eeprom select - this bit allows the cpu to specify which registers the eeprom reload or store refers to. when high, the general purpose register is the only register read or written. when low, the reload and store functions are enabled. reload in isa mode: the SMC91C95 reads the configuration, base and individual address, and store writes the configuration and base registers. also when set it will read the eeprom and update relevant registers with its contents. this bit then clears upon completing the operation. in pcmcia mode: the SMC91C95 reads the contents of the eeprom and stores the contents in the SMC91C95 cis sram as defined in table 10 . store in isa mode: the store bit when set, stores the contents of all relevant registers in the serial eeprom. this bit is cleard upon completing the operation. in pcmcia mode: the SMC91C95 performs no function. note: when an eeprom access is in progress the store and reload bits will be read back as high. the remaining 14 bits of this register will be invalid. during this time, attempted read/write operations, other than polling the eeprom status, will not have any effect on the internal registers. the cpu can resume accesses to the SMC91C95 after both bits are low. a worst case reload operation initiated by reset or by software takes less than 750 m sec. pcmcia eeprom to sram memory map as defined in the pcmcia specification, odd byte attribute memory locations are a don?t care. in order to utilize the serial eeprom and internal SMC91C95 sram, the data to memory mapping is shown in table 10 .
55 table 10 - pcmcia eeprom to sram memory map attribute memory host address (hex) attribute data eeprom address in words SMC91C95 sram in bytes 000 data byte 0 word 1 - low byte byte 0 001 don?t care 002 data byte 1 word 1 - high byte byte1 003 don?t care 004 data byte 2 word 2 - low byte byte2 005 don?t care 006 data byte 3 word 2 - high byte byte3 .. .. .. .. 3f8 data byte 1fc word fe - low byte byte fc 3f9 don?t care 3fa data byte 1fd word fe- high byte byte1fd 3fb don?t care 3fc data byte 1fe word ff - low byte byte1fe 3fd don?t care 3fe data byte 1ff word ff - high byte byte1ff 3ff don?t care note: this memory map assumes a 4096 bit serial eeprom in pcmcia mode.
56 i/o space - bank2 offset name type symbol 0 mmu command register write only busy bit readable mmucr this register is used by the cpu to control the memory allocation, de-allocation, tx fifo and rx fifo control. the three command bits determine the command issued as described below: high byte low byte command 0 0 n2 n1 n0/bus y x y z 0 command set: xyz 000 0) noop - no operation 001 1) allocate memory for tx - n2,n1,n0 defines the amount of memory requested as (value + 1) * 256 bytes. namely n2,n1,n0 = 1 will request 2 * 256 = 512 bytes. valid range for n2,n1,n0 is 0 through 5. a shift-based divide by 256 of the packet length yields the appropriate value to be used as n2,n1,n0. immediately generates a completion code at the allocation result register. can optionally generate an interrupt on successful completion. the allocation time can take worst case (n2,n1,n0 + 2) * 200ns. 010 2) reset mmu to initial state - frees all memory allocations, clears relevant interrupts, resets packet fifo pointers. 011 3) remove frame from top of rx fifo - to be issued after cpu has completed processing of present receive frame. this command removes the receive packet number from the rx fifo and brings the next receive frame (if any) to the rx area (output of rx fifo). 100 4) remove and release top of rx fifo - like 3) but also releases all memory used by the packet presently at the rx fifo output. 101 5) release specific packet - frees all pages allocated to the packet specified in the packet number register. should not be used for frames pending transmission. typically used to remove transmitted frames, after reading their completion status. can be used following 3) to release receive packet memory in a more flexible way than 4).
57 110 6) enqueue packet number into tx fifo - this is the normal method of transmitting a packet just loaded into ram. the packet number to be enqueued is taken from the packet number register. 111 7) reset tx fifos - this command will reset both tx fifos: the tx fifo holding the packet numbers awaiting transmission and the tx completion fifo. this command provides a mechanism for canceling packet transmissions, and reordering or bypassing the transmit queue. the reset tx fifos command should only be used when the transmitter is disabled. unlike the reset mmu command, the reset tx fifos does not release any memory. note 1: only command 1) uses n2,n1,n0. note 2: when using the reset tx fifos command, the cpu is responsible for releasing the memory associated with outstanding packets, or re-enqueuing them. packet numbers in the completion fifo can be read via the fifo ports register before issuing the command. note 3: mmu commands releasing memory (commands 4 and 5) should only be issued if the corresponding packet number has memory allocated to it. command sequencing a second allocate command (command 1) should not be issued until the present one has completed. completion is determined by reading the failed bit of the allocation result register or through the allocation interrupt. a second release command (commands 4, 5) should not be issued if the previous one is still being processed. the busy bit indicates that a release command is in progress. after issuing command 5, the contents of the pnr should not be changed until busy goes low. after issuing command 4, command 3 should not be issued until busy goes low. busy bit - readable at bit 0 of the mmu command register address. when set indicates that mmu is still processing a release command. when clear, mmu has already completed last release command. busy and failed bits are set upon the trailing edge of command.
58 i/o space - bank2 offset name type symbol 2 packet number register read/write pnr packet number at tx area 0 0 0 0 0 0 0 0 packet number at tx area - the value written into this register determines which packet number is accessible through the tx area. some mmu commands use the number stored in this register as the packet number parameter. this register is cleared by a reset or a reset mmu command. offset name type symbol 3 allocation result register read only arr this register is updated upon an allocate memory mmu command. failed allocated packet number 1 0 0 0 0 0 0 0 failed - a zero indicates a successful allocation completion. if the allocation fails the bit is set and only cleared when the pending allocation is satisfied. defaults high upon reset and reset mmu command. for polling purposes, the alloc_int in the interrupt status register should be used because it is synchronized to the read operation. sequence: 1) allocate command 2) poll alloc_int bit until set 3) read allocation result register allocated packet number - packet number associated with the last memory allocation request. the value is only valid if the failed bit is clear. note: for software compatibility with future versions, the value read from the arr after an allocation request is intended to be written into the pnr as is, without masking higher bits (provided failed = 0).
59 i/o space - bank2 offset name type symbol 4 fifo ports register read only fifo this register provides access to the read ports of the receive fifo and the transmit completion fifo. the packet numbers to be processed by the interrupt service routines are read from this register. high byte rempt y rx fifo packet number 1 0 0 0 0 0 0 0 low byte tempt y tx done packet number 1 0 0 0 0 0 0 0 rempty - no receive packets queued in the rx fifo. for polling purposes, uses the rcv_int bit in the interrupt status register. top of rx fifo packet number - packet number presently at the output of the rx fifo. only valid if rempty is clear. the packet is removed from the rx fifo using mmu commands 3) or 4). tempty - no transmit packets in completion queue. for polling purposes, uses the tx_int bit in the interrupt status register. tx done packet number - packet number presently at the output of the tx completion fifo. only valid if tempty is clear. the packet is removed when a tx int acknowledge is issued. note: for software compatibility with future versions, the value read from each fifo register is intended to be written into the pnr as is, without masking higher bits (provided tempty and rempty = 0 respectively).
60 i/o space - bank2 offset name type symbol 6 pointer register read/write ptr high byte rcv auto incr. read eten 0 pointer high 0 0 0 0 0 0 0 0 low byte pointer low 0 0 0 0 0 0 0 0 pointer register - the value of this register determines the address to be accessed within the transmit or receive areas. it will auto-increment on accesses to the data register when auto incr. is set. the increment is by one for every byte access, and by two for every word access. when rcv is set the address refers to the receive area and uses the output of rx fifo as the packet number, when rcv is clear the address refers to the transmit area and uses the packet number at the packet number register. read bit - determines the type of access to follow. if the read bit is high the operation intended is a read. if the read bit is low the operation is a write. loading a new pointer value, with the read bit high, generates a pre-fetch into the data register for read purposes. readback of the pointer will indicate the value of the address last accessed by the cpu (rather than the last pre-fetched). this allows any interrupt routine that uses the pointer, to save it and restore it without affecting the process being interrupted. the pointer register should not be loaded until 400ns after the last write operation to the data register to ensure that the data register fifo is empty. if the pointer is loaded using 8 bit writes, the low byte should be loaded first and the high byte last. eten bit - when set enables early transmit underrun detection. normal operation when clear. for underrun detection purposes the ram logical address and packet numbers of the packet being loaded are compared against the logical address and packet numbers of the packet being transmitted. if the packet numbers match and the logical address of the packet being transmitted exceeds the address being loaded the packet transmission is aborted and underrun is reported in the transmit status word. note: if auto incr. is not set and 16 bits are used, the pointer must be loaded with an even value. if auto incr. is not set and 8 bit (allows even and odd values) writes are used, consecutive writes to the data register for the same pointer (same memory address) value is not allowed; even and odd pointer values are always allowed.
61 i/o space - bank2 offset name type symbol 8 through ah data register read/write data data high data low data register - used to read or write the data buffer byte/word presently addressed by the pointer register. this register is mapped into two uni-directional fifos that allow moving words to and from the SMC91C95 regardless of whether the pointer address is even or odd. data goes through the write fifo into memory, and is pre-fetched from memory into the read fifo. if byte accesses are used, the appropriate (next) byte can be accessed through the data low or data high registers. the order to and from the fifo is preserved. byte and word accesses can be mixed on the fly in any order. this register is mapped into two consecutive word locations to facilitate the usage of double word move instructions. the data register is accessible at any address in the 8 through ah range, while the number of bytes being transferred are determined by a0 and nsbhe in isa mode, and by a0, nce1 and nce2 in pcmcia mode.
62 i/o space - bank2 offset name type symbol c interrupt status register read only ist ercv int eph int rx_ovr n int alloc int tx empty int tx int rcv int x 0 0 0 0 1 0 0 offset name type symbol c interrupt acknowledge register write only ack ercv int rx_ovr n int tx empty int tx int offset name type symbol d interrupt mask register read/write msk ercv int eph int rx_ovr n int alloc int tx empty int tx int rcv int x 0 0 0 0 0 0 0 this register can be read and written as a word or as two individual bytes. the interrupt mask register bits enable the appropriate bits when high and disable them when low. an enabled bit being set will cause a hardware interrupt. eph int - set when the ethernet protocol handler section indicates one out of various possible special conditions. this bit merges exception type of interrupt sources, whose service time is not critical to the execution speed of the low level drivers. the exact nature of the interrupt can be obtained from the eph status register (ephsr), and enabling of these sources can be done via the control register. the possible sources are: link_ok transition ctr_rol - statistics counter roll over. txena cleared - a fatal transmit error occurred forcing txena to be cleared. tx_suc will be low and the specific reason will be reflected by the bits: txunrn - transmit underrun sqet - sqe error lost carr - lost carrier latcol - late collision 16col - 16 collisions
63 wake_up - ?magic packet? is received if enabled rx_ovrn int - set when the receiver overruns due to a failed memory allocation. the rx_ovrn bit of the ephsr will also be set, but if a new packet is received it will be cleared. the rx_ovrn int bit, however, latches the overrun condition for the purpose of being polled or generating an interrupt, and will only be cleared by writing the acknowledge register with the rx_ovrn int bit set. alloc int - set when an mmu request for tx pages allocation is completed. this bit is the complement of the failed bit in the allocation result register. the alloc int enable bit should only be set following an allocation command, and cleared upon servicing the interrupt. tx empty int - set if the tx fifo goes empty, can be used to generate a single interrupt at the end of a sequence of packets enqueued for transmission. this bit latches the empty condition, and the bit will stay set until it is specifically cleared by writing the acknowledge register with the tx empty int bit set. if a real time reading of the fifo empty is desired, the bit should be first cleared and then read. the tx empty int enable should only be set after the following steps: a) a packet is enqueued for transmission b) the previous empty condition is cleared (acknowledged) tx int - set when at least one packet transmission was completed. the first packet number to be serviced can be read from the fifo ports register. the tx int bit is always the logic complement of the tempty bit in the fifo ports register. after servicing a packet number, its tx int interrupt is removed by writing the interrupt acknowledge register with the tx int bit set. rcv int - set when a receive interrupt is generated. the first packet number to be serviced can be read from the fifo ports register. the rcv int bit is always the logic complement of the rempty bit in the fifo ports register. ercv int - early receive interrupt. set whenever a receive packet is being received, and the number of bytes received into memory exceeds the value programmed as ercv threshold (bank 3, offset ch). ercv int stays set until acknowledged by writing the interrupt acknowledge register with the ercv int bit set. note: if the driver uses auto r elease mode it should enable tx empty int as well as tx int. tx empty int will be set when the complete sequence of packets is transmitted. tx int will be set if the sequence stops due to a fatal error on any of the packets in the sequence. note: for edge triggered systems, the interrupt service routine should clear the interrupt mask register, and only enable the appropriate interrupts after the interrupt source is serviced (acknowledged).
64 figure 9 - interrupt structure 5 4 3 2 1 0 5 4 3 2 1 0 i n t e r r u p t s t a t u s r e g i s t e r i n t e r r u p t m a s k r e g i s t e r o e n o e n r d i s t 1 6 d a t a b u s d 0 - 7 d 8 - 1 5 e d g e d e t e c t o r o n l i n k e r r l e m a s k c t r - r o l c r m a s k t e m a s k t x e n a t x _ s v c e p h s r i n t e r r u p t s m e r g e d i n t o e p h i n t d 2 d 4 d s q n q t x f i f o e m p t y n w r a c k d s q n q r x _ o v r n ( e p h s r ) a l l o c a t i o n f a i l e d t x c o m p l e t i o n f i f o n o t e m p t y r c v f i f o n o t e m p t y r c v i n t t x i n t t x e m p t y i n t a l l o c i n t r x _ o v r n i n t e p h i n t int m a i n i n t e r r u p t s
65 i/o space - bank 3 offset name type symbol 0 through 7 multicast table read/write mt low byte multicast table 0 0 0 0 0 0 0 0 0 high byte multicast table 1 0 0 0 0 0 0 0 0 low byte multicast table 2 0 0 0 0 0 0 0 0 high byte multicast table 3 0 0 0 0 0 0 0 0 low byte multicast table 4 0 0 0 0 0 0 0 0 high byte multicast table 5 0 0 0 0 0 0 0 0 low byte multicast table 6 0 0 0 0 0 0 0 0 high byte multicast table 7 0 0 0 0 0 0 0 0 the 64 bit multicast table is used for group address filtering. the hash value is defined as the six most significant bits of the crc of the destination addresses. the three msb's determine the register to be used (mt0-mt7), while the other three determine the bit within the register. if the appropriate bit in the table is set, the packet is received. if the almul bit in the rcr register is set, all multicast addresses are received regardless of the multicast table values. hashing is only a partial group addressing filtering scheme, but being the hash value available as part of the receive status word, the receive routine can reduce the search time significantly. with the proper memory structure, the search is limited to comparing only the multicast addresses that have the actual hash value in question.
66 i/o space - bank3 offset name type symbol 8 management interface read/write mgmt high byte nxnde c ios2 ios1 ios0 0 0 1 1 low byte mdoe mclk mdi mdo 0 0 1 1 0 0 0 0 nxndec - read only bit reflecting the status of the nxendec pin. ios0-ios2 - read only bits reflecting the status of the ios0-ios2 pins. mdo - the value of this bit drives the eedo pin when mdoe=1. mdi - reads the value of the eedi pin. mdclk - the value of this bit drives the eesk pin when mdoe=1. mdoe - when this bit is high pins eedo eecs and eesk will be used for transceiver management functions, otherwise the pins assume the eeprom values. mdoe=0 mdoe=1 eedo serial eeprom data out bit mdo eesk serial eeprom clock bit mclk eecs serial eeprom chip select 0
67 i/o space - bank3 offset name type symbol a revision register read only rev high byte 0 0 1 1 0 0 1 1 low byte chip rev 0 1 0 0 0 0 0 0 chip - chip id. can be used by software drivers to identify the device used. rev - revision id. incremented for each revision of a given device. chip id value device 3 smc91c90/smc91c92 4 smc91c94 5 SMC91C95 7 feast
68 i/o space - bank 3 offset name type symbol c early rcv register read/write ercv high byte 0 0 1 1 0 0 1 1 low byte rcv discr d ercv threshold 0 0 0 1 1 1 1 1 rcv discrd - set to discard a packet being received. this bit can be used in conjunction with ercv threshold and ercv int to process a packet header while it is being received and sicard it if the packet is not desired. setting this bit will only discard packets that are still in the process of being received. if the rcv discrd bit is set prior to the end of a receive packet, rxovrn bit in the interrupt status register will be set to indicate that the packet was discarded and its memory released. if the receive packet is complete prior to the rcv discrd bit being set, the packet is received normally and rcv int bit is set in the interrupt status register. the rcv discrd bit is self-clearing. ercv threshold - threshold for ercv interrupt. specified in 64 byte multiples. whenever the number of bytes written in memory for the presently received packet exceeds the ercv threshold, ercv int bit of the interrupt status register is set.
69 theory of operation pc card 5.0 treats the individual functions of a multifunction pcmcia application independently. card and socket services (c&ss) 5.0 is designed to provide the support for determining the function generating the interrupt and informing relevant drivers. the registers for the two functions are treated as independent sets. one of the only requirements is to set the functions? i/o base registers with different values to avoid any access conflict. memory architecture the concept of presenting the shared ram as fifo of packets, with a memory management unit allocating memory on a per packet basis responds to the following needs: memory allocation for receive vs. transmit - a fixed partition between receive and transmit area would not be efficient. being able to dynamically allocate it to transmit and receive represents almost the equivalent of duplicating the memory size for some workstation type of drivers. software overhead - by presenting a fifo of packets, the software driver does not have to waste any time in calculating pointers for the different buffers that make up different packets. the driver usually deals with one packet at a time. with this approach, packets are accessible always at the same fixed address, and access is provided to any byte of the packet. headers can be analyzed without reading out the entire packet. the packet can be moved in or out with a block move operation. multiple upper layer support - the SMC91C95 facilitates interfacing to multiple upper layer protocols because of the receive packet processing flexibility. a receive lookahead scheme like odi or ndis drivers is supported by copying a small part of the received packet and letting the upper layer provide a pointer for the rest of the data. if the upper layer indicates it does not want a specific part of the packet, a block move operation starting at any particular offset can be done. out of order receive processing is also supported: if memory for one packet is not yet available, receive packet processing can continue. efficiency - lacking any level of indirection or linked lists of pointers, virtually all the memory is used for data. there are not descriptors, forward links and pointers at all. this simplicity and memory efficiency is accomplished without giving up the benefits of linked lists which is unlimited back-to-back transmission and reception without cpu intervention for as long as memory is available. full duplex ethernet support full duplex ethernet operation refers to the ability of the network (or parts of it) to simultaneously transmit and receive packets. the csma/cd protocol used by ethernet for accessing a shared medium is inherently half duplex , and so is the 10base-t physical layer where simultaneous transmit and receive activity is interpreted as a collision. the SMC91C95 supports two types of full duplex operation: 1. full duplex mode for diagnostic purposes only, where the received packet is the transmit packet being looped back. this mode is enabled using the fduplx bit in the tcr. in this mode the csma/cd algorithm is used to gain access to the media.
70 2. fdse (full duplex switched ethernet). enabled by fdse bit in tcr bit. when the SMC91C95 is configured for fdse, its transmit and receive paths will operate independently and some csma/cd functions are disabled such as carrier sense. behavior in fdse mode the main 802.3 section affected by fdse is 4.2.8 where the frame transmission procedural model is presented. the changes are: 1. no deferral - the transmit channel is dedicated and always available - the device will transmit whenever it has a packet ready to be sent, while respecting the interframe spacing between transmit packets. 2. no collision detection - there are no collisions in a switched environment. the eph implementation of the procedural model uses as ?collisiondetect? the mac collision input, sourced from the 10base- t front end, aui front end, or external endec interface. this collision input is observed by the transmit state machine while ?transmitting? is true, that is during preamble, data, pad, and crc states. if collision is active during any of these states the state machine transitions to jam and backoff states. 3. 10base-t loopback - typically 10base-t drivers are internally looped back to the differential receivers. ?magic packet? support if the wakeup_en bit in the control register (bank1, offset c) is set, the controller will come out of any powerdown mode. if this bit is not set, this functionality is disabled. when a ?magic packet? is received, the ethernet controller will generate an interrupt causing the host to initiate a service routine to find the source of the event. the interrupt bit in the ecsr is also set if the host plans on polling the controller for wakeup status.
71 typical flow of events for transmit s/w driver csma/cd side 1 issue allocate memory for tx - n bytes - the mmu attempts to allocate n bytes of ram. 2 wait for successful completion code - poll until the alloc int bit is set or enable its mask bit and wait for the interrupt. the tx packet number is now at the allocation result register. 3 load transmit data - copy the tx packet number into the packet number register. write the pointer register, then use a block move operation from the upper layer transmit queue into the data register. 4 issue "enqueue packet number to tx fifo" - this command writes the number present in the packet number register into the tx fifo. the transmission is now enqueued. no further cpu intervention is needed until a transmit interrupt is generated. 5 the enqueued packet will be transferred to the csma/cd block as a function of txena (n tcr) bit and of the deferral process (in half duplex mode) state. 6 upon transmit completion the first word in memory is written with the status word. the packet number is moved from the tx fifo into the tx completion fifo. interrupt is generated by the tx completion fifo being not empty. 7 service interrupt - read interrupt status register. if it is a transmit interrupt, read the tx done packet number from the fifo ports register. write the packet number into the packet number register. the corresponding status word is now readable from memory. if status word shows successful transmission, issue release packet number command to free up the memory used by this packet. remove packet number from completion fifo by writing tx int acknowledge register.
72 typical flow of events for receive s/w driver csma/cd side 1 enable reception - by setting the rxen bit. 2 a packet is received with matching address. memory is requested from mmu. a packet number is assigned to it. additional memory is requested if more pages are needed. 3 the internal dma logic generates sequential addresses and writes the receive words into memory. the mmu does the sequential to physical address translation. if overrun, packet is dropped and memory is released. 4 when the end of packet is detected, the status word is placed at the beginning of the receive packet in memory. byte count is placed at the second word. if the crc checks correctly the packet number is written into the rx fifo. the rx fifo being not empty causes rcv int (interrupt) to be set. if crc is incorrect the packet memory is released and no interrupt will occur. 5 service interrupt - read the interrupt status register and determine if rcv int is set. the next receive packet is at receive area. (its packet number can be read from the fifo ports register). the software driver can process the packet by accessing the rx area, and can move it out to system memory if desired. when processing is complete the cpu issues the remove and release from top of rx command to have the mmu free up the used memory and packet number.
73 figure 10 - ethernet interrupt service routine isr save bank select & address ptr registers mask 91c94 interrupts read interrupt register call tx intr or txempty intr tx intr? get next tx rx intr? yes no no yes call rxintr alloc intr? no yes write allocated pkt # into packet number reg. write ad ptr reg. & copy data & source address enqueue packet packet available for transmission? yes no call allocate eph intr? no yes call eph intr set "ready for packet" flag return buffers to upper layer disable allocation interrupt mask restore address pointer & bank select registers unmask 91c94 interrupts exit isr
74 figure 11 - interrupt generation for transmit, receive, mmu t x f i f o t x c o m p l e t i o n f i f o r x f i f o c s m a / c d l o g i c a l a d d r e s s p a c k e t # m m u p h y s i c a l a d d r e s s r a m c p u a d d r e s s c s m a a d d r e s s r x p a c k e t n u m b e r r x f i f o p a c k e t n u m b e r p a c k e t n u m b e r r e g i s t e r p a c k # o u t m . s . b i t o n l y ' e m p t y ' ' n o t e m p t y ' t x d o n e p a c k e t n u m b e r ' n o t e m p t y ' i n t e r r u p t s t a t u s r e g i s t e r r c v i n t t x e m p t y i n t t x i n t a l l o c i n t t w o o p t i o n s
75 figure 12 - rx intr rx intr write ad. ptr. reg. & read word 0 from ram destination multicast? read words 2, 3, 4 from ram for address filtering address filtering pass? status word ok? do receive lookahead get copy specs from upper layer okay to copy? copy data per upper layer specs issue "remove and release" command return to isr yes no yes no no yes no yes
76 figure 13 - tx intr (assumes auto release option selected) write into packet number register tx status ok? tx intr save pkt number register read txdone pkt # from fifo ports reg. immediately issue "release" command acknowledge txintr read tx int again return to isr no yes read status word from ram update statistics re-enable txena update variables tx int = 0? restore packet number yes no write address pointer register
77 figure 14 - txempty intr txempty intr write acknowledge reg. with txempty bit set read txempty & tx intr acknowledge txintr re-enable txena return to isr issue "release" command restore packet number txempty = 0 & txint = 0 (waiting for completion) txempty = x & txint = 1 (transmission failed) txempty = 1 & txint = 0 (everything went through successfully) read pkt. # register & save write address pointer register read status word from ram update statistics update variables
78 figure 15 - driver send and allocate routines allocate issue "allocate memory" command to mmu read interrupt status register enqueue packet set "ready for packet" flag return copy remaining tx data packet into ram return buffers to upper layer write allocated packet into packet # register write address pointer register copy part of tx data packet into ram write source address into proper location store data buffer pointer clear "ready for packet" flag enable allocation interrupt allocation passed? yes no driver send choose bank select register 2 call allocate exit driver send read allocation result register
79 memory partitioning unlike other controllers, the SMC91C95 does not require a fixed memory partitioning between transmit and receive resources. the mmu allocates and de-allocates memory upon different events. an additional mechanism allows the cpu to prevent the receive process from starving the transmit memory allocation. memory is always requested by the side that needs to write into it, that is: the cpu for transmit or the csma/cd for receive. the cpu can control the number of bytes it requests for transmit but it cannot determine the number of bytes the receive process is going to demand. furthermore, the receive process requests will be dependent on network traffic, in particular on the arrival of broadcast and multicast packets that might not be for the node, and that are not subject to upper layer software flow control. in order to prevent unwanted traffic from using too much memory, the cpu can program a "memory reserved for transmit" parameter. if the free memory falls below the "memory reserved for transmit" value, mmu requests from the csma/cd block will fail and the packets will overrun and be ignored. whenever enough memory is released, packets can be received again. if the reserved value is too large, the node might lose data which is an abnormal condition. if the value is kept at zero, memory allocation is handled on first-come first-served basis for the entire memory capacity. note that with the memory management built into the SMC91C95, the cpu can dynamically program this parameter. for instance, when the driver does not need to enqueue transmissions, it can allow more memory to be allocated for receive (by reducing the value of the reserved memory). whenever the driver needs to burst transmissions it can reduce the receive memory allocation. the driver program the parameter as a function of the following variables: 1) free memory (read only register) 2) memory size (read only register) the reserved memory value can be changed on the fly. if the memory reserved for tx value is increased above the free memory, receive packets in progress are still received, but no new packets are accepted until the free memory increases above the memory reserved value. interrupt generation the interrupt strategy for the transmit and receive processes is such that it does not represent the bottleneck in the transmit and receive queue management between the software driver and the controller. for that purpose there is no register reading necessary before the next element in the queue (namely transmit or receive packet) can be handled by the controller. the transmit and receive results are placed in memory. the receive interrupt will be generated when the receive queue (fifo of packets) is not empty and receive interrupts are enabled. this allows the interrupt service routine to process many receive packets without exiting, or one at a time if the isr just returns after processing and removing one. there are two types of transmit interrupt strategies: 1) one interrupt per packet 2) one interrupt per sequence of packets the strategy is determined by how the transmit interrupt bits and the auto release bit are used.
80 tx int bit - set whenever the tx completion fifo is not empty. tx empty int bit - set whenever the tx fifo is empty. auto release - when set, successful transmit packets are not written into completion fifo, and their memory is released automatically. 1) one interrupt per packet: enable tx int, set auto release=0. the software driver can find the completion result in memory and process the interrupt one packet at a time. depending on the completion code the driver will take different actions. note that the transmit process is working in parallel and other transmissions might be taking place. the SMC91C95 is virtually queuing the packet numbers and their status words. in this case, the transmit interrupt service routine can find the next packet number to be serviced by reading the tx done packet number at the fifo ports register. this eliminates the need for the driver to keep a list of packet numbers being transmitted. the numbers are queued by the SMC91C95 and provided back to the cpu as their transmission completes. 2) one interrupt per sequence of packets: enable tx empty int and tx int, set auto release=1. tx empty int is generated only after transmitting the last packet in the fifo. tx int will be set on a fatal transmit error allowing the cpu to know that the transmit process has stopped and therefore the fifo will not be emptied. this mode has the advantage of a smaller cpu overhead, and faster memory de- allocation. note that when auto release=1 the cpu is not provided with the packet numbers that completed successfully. note: the pointer register is shared by any process accessing the SMC91C95 memory. in order to allow processes to be interruptable, the interrupting process is responsible for reading the pointer value before modifying it, saving it, and restoring it before returning from the interrupt. typically there would be three processes using the pointer: 1) transmit loading (sometimes interrupt driven) 2) receive unloading (interrupt driven) 3) transmit status reading (interrupt driven) 1) and 3) also share the usage of the packet number register. therefore saving and restoring the pnr is also required from interrupt service routines. internal vs. external attribute memory map the internal vs. external eprom attribute memory decodes are shown in table 11 and table 12 . this allows the designer to not require an external eprom device if the single or multi- function pcmcia card needs less than 512 bytes of configuration information. as can be seen in the map, if 512 bytes of cis or less is required, the nfcs and nfwe output pins of the SMC91C95 need not be used (if serial eeprom is being used). internal to the SMC91C95, the memory addressing logic will allow byte or word access on even byte boundaries. this implies that on odd byte address access (a0=1), the SMC91C95 will generate a arbitrary value of zero (0) since the pcmcia specification states that the high byte of a word access in attribute memory is a don?t care. this allows backward compatibility to 8 bit hosts.
81 table 11 - attribute memory decodes using serial eprom attribute memoryaddress external eprom store internal sram store (512 bytes) configuration registers 0 - 3feh x 400h-7ffeh x 8000h - 803eh x table 12 - attribute memory decodes without serial eprom attribute memoryaddress external eprom store internal sram store (512 bytes) configuratio n registers 0 - 7ffeh x 8000h - 803eh x
82 pcmcia configuration registers description ethernet function (base address 8000h) 8000h - ethernet configuration option register (ecor) 7 6 5 4 3 2 1 0 sreset levireq wrattri b enable ireq enable base and limit enable function 0 1 0 0 0 0 0 0 bit 7 - sreset: this bit when set will clear all internal registers associated with the ethernet function except itself. bit 6 - levireq: this bit is read only and reads as a one to indicate level mode interrupts are used. pulse mode interrupts are not supported. bit 5 - not defined bit 4 - not defined bit 3 - wrattrib: this bit when when set (1), allows writting into the external attribute memory space. bit 2 - enable ireq routing: this bit enables (1) or disables (0) the ethernet function from asserting nireq. the nireq pin on power up and reset is in a high (1) de-asserted state. bit 1 - enable base and limit: this bit enables the on board i/o base decoder. if set, the on- board decoder is used to select the function. if cleared, the decoder is disabled and it is assumed that the host provides for the decoding. when the decode is disabled, the function is enabled, and is configured for 16 bits (and not in power-down mode), the signal - iois16 is always asserted. it is then up to the host to qualify the usage of -iois16. for multifunction pcmcia functionality, this bit must be set. bit 0 - enable function: this bit enables (1) or disables (0) the ethernet function. while the ethernet function is disabled it remains in powerdown mode, no access to the ethernet i/o space (ie. the bank register are not accessable) is allowed. ireq is not generated for this function and ninpack is not returned for accesses to the ethernet registers. if the ?magic packet? function is enabled, the device is not completly powered down. the mac controller is still enabled to receive.
83 8002h - ethernet configuration and status register (ecsr) 7 6 5 4 3 2 1 0 iois8 pwrdwn intr intrack 0 0 0 0 0 0 0 0 bit 7 - not defined bit 6 - not defined bit 5 - iois8: this bit when set, indicates that the host can only do 8 bit cycles (on d7 -d0). the ethernet function is forced in this case to eight bit mode regardless of the nen16 pin and 16bit value. this bit also disables (floats) the - iois16 signal. bit 4 - not defined bit 3 - not defined bit 2 - pwrdwn: when set (1), this bit puts the SMC91C95 ethernet function into powerdown mode. the ethernet function is also put into powerdown mode when the enable function bit (ecor bit 0) is cleared. refer to the powerdown logic section for additional details as to what logic is powered down. bit 1 - intr: this bit is read/set to a one when this function is requesting interrupt service. it is cleared depending upon the setting of intrack. when this bit and enable ireq routing are set, -ireqout is asserted. all setting and resetting of this bit is edge triggered with exception of the internally generated reset signal for the modem / ethernet related pc card registers. the intr bit can be reset the following ways and priority ranging from 1=highest to 3=lowest: 1) a hardware reset/power up 2) the function ie. interrupt source can only reset this field to zero (0) if the intrack field is reset to zero (0) 3) the host system can only reset this field to a zero (0) only if the intrack bit is set to a one (1) bit 0 - intrack: this bit controls the clearing of the intr bit. when this bit is cleared, intr reflects the function's interrupt status. when this bit is set, the intr bit must be cleared by the host writing a 0 into it. if the function requires additional service the intr bit will remain asserted when the host writes the 0.
84 i/o base register 0 & 1 (i/o base 0 & 1) address 800ah & 800ch 800ah - ethernet i/o base register 0 7 6 5 4 3 2 1 0 a7 a6 a5 a4 0 0 0 0 0 0 0 0 0 0 0 0 800ch - ethernet i/o base register 1 7 6 5 4 3 2 1 0 a15 a14 a13 a12 a11 a10 a9 a8 0 0 0 0 0 0 1 1 the i/o base registers determine the base address of the i/o range used to access function specific registers. these registers allow the function's registers to be placed anywhere in the host's i/o space. i/o base 0 contains the low order byte (a7 -a0) and i/o base 1 contains the high order byte (a15 -a8). since the ethernet function requires 16 i/o locations, bits 3 -0 of i/o base 0 are always 0. since only a15 to a4 are decoded by the controller (64k address space), it is up to the host to resolve any conflicts with addressing above 64k. the default decode value is 300h (a9=a8=1, others=0). note: these registers are ignored in isa mode. these registers are still accessable even if the ?enable base and limit) bit in the mcor is cleared (0).
85 modem function (base address 8020h) 8020h - modem configuration option register (mcor) 7 6 5 4 3 2 1 0 sreset levireq enable ireq enable base and limit enable function 0 1 0 0 0 0 0 0 bit 7 - sreset: this bit when set clears all internal registers associated with the modem function (except itself) and asserts the nmreset pin . bit 6 - levireq: this bit is read only and reads as a one to indicate level mode interrupts are used. pulse mode interrupts are not supported. bit 5 - not defined bit 4 - not defined bit 3 - not defined bit 2 - enable ireq routing: this bit enables (1) or disables (0) the modem function from asserting nireq. bit 1 - enable base and limit: this bit enables the on board modem i/o base decoder. if set, the on-board decoder is used to select the function. if cleared, the decoder is disabled and it is assumed that the host provides for the decoding. when the decode is disabled, the function is enabled, and is configured for 16 bits (and not in power-down mode), the signal - iois16 is always asserted. for multifunction pcmcia functionality, this bit must be set. bit 0 - enable function: this bit enables (1) or disables (0) the modem function. while the modem is disabled the SMC91C95 inhibits nmcs, ireq is not generated for the modem function and ninpack is not returned for accesses to the modem registers.
86 8022h - modem configuration and status register (mcsr) address 8022h 7 6 5 4 3 2 1 0 changed sigchg iois8 reserved audio pwrdwn intr intrack 0 0 0 0 0 0 0 0 bit 7 - changed: this bit is the logical or of the cready/ -bsy and (ringevent bit logically anded with ringenable) states. bit 6 - sigchg: if this bit is a one, the function is enabled (configured), the changed bit controls the nstschg pin. if this bit is low or the function is disabled, the nstschg pin is set to a high. bit 5 - iois8: this bit when set, indicates that the host can only do 8 bit cycles (on d7 -d0). in the case of the iois8 bit being cleared (0), during reset and power up for example, the pin mis16 will override the iois8 default, setting the bit (1). bit 4 - resurvedbit 3 - audio: this bit controls the audio pass through of the digital audio. when cleared, the spkrout pin is three -stated. when set, the spkrin pin is passed to the spkrout pin. bit 2 - pwrdwn: when set (1), this bit puts the modem into powerdown mode. the modem is also put into powerdown mode when the enable function bit is cleared. when in powerdown, the mringin signal is blocked from going to the ringing output signal. when taken out of powerdown (when pwrdwn is cleared (1) and enable function in the mcor (bit 0) is set (1)), the modem is awakened by a pulse on the output ringing signals as appropriate. the pulse duration is determined by the input signal mringin. mringin is then passed to the outputs. bit 1 - intr: this bit is read/set to a one when this function is requesting interrupt service. it is cleared depending upon the setting of intrack. when this bit and enable ireq routing are set, -ireqout is asserted. the intr bit can be reset the following ways and priority ranging from 1=highest to 3=lowest: 1) a hardware reset/power up 2) the function ie. interrupt source can only reset this field to zero (0) if the intrack field is reset to zero (0). 3) the host system can only reset this field to a zero (0) only if the intrack bit is set to a one (1). bit 0 - intrack: this bit controls the clearing of the intr bit. when this bit is cleared, intr reflects the function's interrupt status. when this bit is set, the intr bit must be cleared by the host writing a 0 into it. if the function requires additional service (indicated by leaving mint active) the intr bit will remain asserted when the host writes the 0.
87 8024h - pin replacement register (prr) 7 6 5 4 3 2 1 0 cready/- bsy rready/- bsy 0 0 0 0 0 0 1 0 cready/ -bsy: this bit is set to a one when the bit rready/-bsy bit changes state from zero(0) to one(1) or one(1) to zero(0) with the source of the change of state is a change in the modem ready (mrdy) signal. the cready/-bsy bit can be written by the cpu also. the cpu attempt to write to this bit is masked by the value for rready/bsy bit. a cpu write to this bit is successful only if the rready/-bsy bit is being written as one(1). note that the h/w represented value of the rready/-bsy bit itself is not affected by the write attempt as shown in the following illustration: current value value written new value cready/-bsy rready/-bsy cready/-bsy rready/-bsy cready/-bsy rready/bsy 0 0 1 0 0 0 x 0 1 1 1 0 x 0 0 1 0 0 x 1 1 1 1 1 in the unlikely event that the mrdy changes state at the same time that the nwe signal changes from low to high (ie. writing the register), the value written by the host will have priority over the new state of the mrdy input pin. rready/ -bsy: when read, this bit represents the current state of the modem ready/ -busy (mrdy) signal. attempts of cpu writes to this bit are ignored.
88 8028h - extended status register(esr) 7 6 5 4 3 2 1 0 ringevent ringenable 0 0 0 0 0 0 0 0 ringevent: this bit is latched to a one at the start of each ring frequency cycle (input from ring input from modem, the mringin signal going high). when this bit and ringenable are both set to a one (1), the changed bit in the mcsr is set to a one(1). this bit is reset if the host writes a one (1) and the change bit in the mcsr register is unaffected if the host writes a zero (0). ringenable: when set, this bit gates the ringevent into the changed bit.
89 802ah - modem i/o base register 0 7 6 5 4 3 2 1 0 a7 a6 a5 a4 a3 0 0 0 0 0 0 0 0 0 0 0 802ch - modem i/o base register 1 7 6 5 4 3 2 1 0 a15 a14 a13 a12 a11 a10 a9 a8 0 0 0 0 0 0 1 1 the modem i/o base registers determine the base address of the i/o range used to access function specific registers. these registers allow the function's registers to be placed anywhere in the host's i/o space. i/o base 0 contains the low order byte (a7 -a0) and i/o base 1 contains the high order byte (a15 -a8). since the modem function requires 8 i/o locations, bits 2 -0 of i/o base 0 are always 0. since only a15 to a4 are decoded by the controller (64k address space), it is up to the host to resolve any conflicts with addressing above 64k. these registers are still accessable even if the ?enable base and limit? bit in the mcor is cleared (0).
90 8032h - modem i/o size register modem i/o size mask 0 0 0 0 0 1 1 1 the i/o size register holds a bit mask used to specify the number of address lines decoded by the modem function. each bit in the register represents an i/o address line. a value of one means that the SMC91C95 will not decode the corresponding address line for the modem function, a value of zero means that the address line will be decoded. if a bit in the register is set to one, all bits of lesser significance in the register must also be set to one. this register defaults to 7h, that is a0, a1 and a2 are not decoded resulting in 8 address locations for the modem function. modem i/o space: address determined by modem i/o base registers the modem i/o space is external to the SMC91C95. the SMC91C95 decodes the address bus ( a15 through a3) via a internal comparator and generates nmcs for i/o cycles that decode to the modem area as defined by the modem i/o base registers. the i/o address space consists of eight (8) 8-bit locations. the SMC91C95 will tri-state the data bus during modem i/o space accesses. in isa mode, nmcs is disabled (1). no address decodeing for the modem will be done. ethernet i/o space : address determined by ethernet i/o base registers the ethernet i/o space consists of sixteen locations whose base address is determined in pcmcia mode by the ethernet i/o base registers, and in isa mode by the default value of the base register (either reset or serial eeprom default in isa mode only). the ethernet i/o space can be configured as an 8 or 16 bit space, and is similar to the SMC91C95, smc91c92, etc. i/o space. to limit the i/o space requirements to 16 locations, the registers are split into six banks. the last word of the i/o area is shared by all banks and can be used to change the bank in use. banks 0 through 3 functionally correspond to the SMC91C95 banks, while banks 4 and 5 allow access to the multifunction registers in isa mode.
91 functional description of the blocks memory management unit the mmu interfaces the on-chip ram on one side and the arbiter on the other for address and data flow purposes. for allocation and de- allocation, it interfaces the arbiter only. the mmu deals with a single ported memory and is not aware of the fact that there are two entities requesting allocation and actually accessing memory. the mapping function done by the mmu is only a function of the packet number accessed and of the offset within that packet being accessed. it is not a function of who is requesting the access or the direction of the access. to accomplish that, memory accesses as well as mmu allocation and de-allocation requests are arbitrated by the arbiter block before reaching the mmu. memory allocation could take some time, but the alloc int bit in interrupt status register is negated immediately upon allocation request, allowing the system to poll that register at any time. memory de-allocation command completion indication is provided via the busy bit, readable through the mmu command register. the mapping and queuing functions of the mmu rely on the uniqueness of the packet number assigned to the requester. for that purpose the packet number assignment is centralized at the mmu, and a number will not be reused until the memory associated with it is released. it is clear that a packet number should not be released while the number is in the tx or rx packet queue. the tx and rcv fifos are deep enough to handle the total number of packets the mmu can allocate, therefore there is no need for the programmer or the hardware to check fifo full conditions. arbiter the function of the arbiter is to sequence packet ram accesses as well as mmu requests in such a way that the on-chip single ported ram and a single mmu can be shared by two parties. one party is the host cpu and the other party is the csma/cd block. the arbiter is address transparent, namely, any address can be accessed at any time. in order to exploit the sequential nature of the access, and minimize the access time on the system side, the cpu cycle is buffered by the data register rather than go directly to and from memory. whenever a write cycle is performed, the data is written into the data register and will be written into memory as a result of that operation, allowing the cpu cycle to complete before the arbitration and memory cycle are complete. whenever a read cycle is performed, the data is provided immediately from the data register, without having to arbitrate and complete a memory cycle. the present cycle results in an arbitration request for the next data location. loading the pointer causes a similar pre-fetch request. this type of read-ahead and write-behind arbitration allows the controller to have a very fast access time, and would work without wait states for as long as the cycle time spec. is satisfied. the values are 40 ns access time, and 185ns cycle time. by the same token, csma/cd cycles might be postponed. the worst case csma/cd latency for arbiter service is one memory cycle.
92 the arbiter uses the pointer register as the cpu provided address, and the internal dma address from the csma/cd side as the addresses to be provided to the mmu. the data path routed by the arbiter goes between memory (the data path does not go through the mmu) on one side and either the cpu side bus or the data path of the csma/cd core. the data path between memory and the data register is in fact buffered by a small fifo in each direction. the fifos beneath the data register can be read and written as bytes or words, in any sequential combination. the presence of these fifos makes sure that word transfers are possible on the system bus even if the address loaded into the pointer is odd. bus interface the bus interface handles the data, address and control interfaces as a superset of the isa and pcmcia specifications and allows 8 or 16 bit adapters to be designed with the SMC91C95 with no glue to interface to the isa or pcmcia bus. the functions done in this block are address decoding for i/o and rom memory (including address relocation support) for isa, data path routing, sequential memory address support, optional wait state generation, boot rom support, eeprom setup function, bus transceiver control, and interrupt generation/selection. for isa, i/o address decoding is done by comparing a15-a4 to the i/o base address determined in part by the upper byte of the base address register, and also requiring that aen be low. if the above address comparison is satisfied and the SMC91C95 is in 16 bit mode, niocs16 will be asserted (low). a valid comparison does not yet indicate a valid i/o cycle is in progress, as the addresses could be used for a memory cycle, or could even glitch through a valid value. only when niord or niowr are activated the i/o cycle begins. in pcmcia mode, a4-a15 are ignored for i/o decodes, which rely on the pcmcia host decoding for the slot. input a10 for isa is used as an output (nfwe) for pcmcia to enable flash memory write for programming the attribute memory. it is valid only when nwe is 0 and cor2 is 1. na11/nfcs is used to select the flash memory chip. wait state policy the SMC91C95 can work on most system buses without having to add wait states. the two parameters that determine the memory access profile are the read access time and the cycle time into the data register. the read access time is 40ns and the cycle time is 185ns. if any one of them does not satisfy the application requirements, wait states should be added. if the access time is the problem, iochrdy should be negated for all accesses to the SMC91C95. this can be achieved by programming the no wait st bit in the configuration register to 0. the SMC91C95 will negate iochrdy for 100ns to 150ns on every access to any register. if the cycle time is the problem, programming no wait st as described before will solve it but at the expense of slowing down all accesses. the alternative is to let the SMC91C95 negate iochrdy only when the data register fifos require so. namely, if no wait st is set, iochrdy will only be negated if a data register read cycle starts and there is less than a full word in the read fifo, or if a
93 write cycle starts and there is more than two bytes in the write fifo. the cycle time is defined as the time between leading edges of read from the data register, or equivalently between trailing edges of write to the data register. for example, in an isa system the cycle time of a 16 bit transfer will be at least 2 clocks for the i/o access to the SMC91C95 + one clock for the memory cycle) = 3 clocks. in absolute time it means 375ns for a 8mhz bus, and 240ns for a 12.5 mhz bus. the cycle time will not increase when configured for full duplex mode, because the csma/cd memory arbitration requests are sequenced by the dma logic and never overlap. dma block the dma block resides between the csma/cd block and the arbiter. it can interface both the data path and the control path of the csma/cd block for different operations. its functions include the following: start transmission process into the csma/cd block. generate csma/cd side addresses for accessing memory during transmit and receive operations. generate mmu memory requests and verify success. compute byte count and write it in first locations of receive packet. write transmit status word in first locations of transmit packet. determine if enough memory is available for reception. de-allocate transmit memory after suitable completion. de-allocate receive memory upon error conditions. initiate retransmissions upon collisions (if less than 16 retries). terminate reception and release memory if packet is too long. the specific nature of each operation and its trigger event are: 1) tx operations will begin if txena is set and tx fifo is not empty. the dma logic does not need to use the tx packet number, it goes directly from the fifo to the mmu. however the dma logic controls the removal of the packet number from the fifo. 2) generation of csma/cd side addresses into memory: independent 11 bit counters are kept for transmit and receive in order to allow full-duplex operation. 3) mmu requests for allocation are generated by the dma logic upon reception. the initial allocation request is issued when the csma block indicates an active reception. if allocation succeeds, the dma block stores the packet number assigned to it, and generates write arbitration requests for as long as the csma/cd fifo is not empty. in parallel the csma/cd completes the address filtering and notifies the dma of an address match. if there is no address match, the dma logic will release the allocated memory and stop reception. 4) when the csma/cd block notifies the dma logic that a receive packet was completed, if the crc is ok, the dma will either write the previously stored packet number into the rx packet number fifo (to be processed by the cpu), or if the crc is bad the dma will just issue a release command to the mmu (and the cpu will never see that packet).
94 packets with bad crc can be received if the rcv_bad bit in the configuration register is set. 5) if auto_release is set, a release is issued by the dma block to the mmu after a successful transmission (tx_succ set), and the tx completion fifo is clocked together with the tx fifo preventing the packet number from moving into the tx completion fifo. 6) based on the rx counter value, if a receive packet exceeds 1532 bytes, reception is stopped by the dma and the rx abort bit in the receive control register is set. the memory allocated to the packet is automatically released. 7) if an allocation fails, the csma/cd block will activate rx_ovrn upon detecting a fifo full condition. rxen will stay active to allow reception of subsequent packets if memory becomes available. the csma/cd block will flush the fifo upon the new frame arrival. packet number fifos the transmit packet fifo stores the packet numbers awaiting transmission, in the order they were enqueued. the fifo is advanced (written) when the cpu issues the "enqueue packet number command", the packet number to be written is provided by the cpu via the packet number register. the number was previously obtained by requesting memory allocation from the mmu. the fifo is read by the dma block when the csma/cd block is ready to proceed on to the next transmission. by reading the tx empty int bit the cpu can determine if this fifo is empty. the transmit completion fifo stores the packet numbers that were already transmitted but not yet acknowledged by the cpu. the cpu can read the next packet number in this fifo from the fifo ports register. the cpu can remove a packet number from this fifo by issuing a tx int acknowledge. the cpu can determine if this fifo is empty by reading the tx int bit or the fifo ports register. the receive packet fifo stores the packet numbers already received into memory, in the order they were received. the fifo is advanced (written) by the dma block upon reception of a complete valid packet into memory. the number is determined the moment the dma block first requests memory from the mmu for that packet. the first receive packet number in the fifo can be read via the fifo ports register, and the data associated with it can be accessed through the receive area. the packet number can be removed from the fifo with or without an automatic release of its associated memory. the fifo is read out upon cpu command (remove packet from top of rx fifo, or remove and release command) after processing the receive packet in the receive area. the width of each fifo is 5 bits per packet number. the depth of each fifo equals the number of packets the SMC91C95 can handle (18). the guideline is software transparency; the software driver should not be aware of different devices or fifo depths. if the mmu memory allocation succeeded, there will be room in the transmit fifo for enqueuing the packet. conversely if there is free memory for receive, there should be room in the receive fifo for storing the packet number. note that the cpu can enqueue a transmit command with a packet number that does not follow the sequence in which the mmu assigned packet numbers. for example, when a transmission failed and it is retried in software, or when a receive packet is modified and sent back to the network.
95 figure 16 - mmu packet number flow and relevant registers t x f i f o c o m p l e t i o n f i f o r x f i f o c s m a / c d l o g i c a l a d d r e s s p a c k e t # m m u p h y s i c a l a d d r e s s r a m c p u a d d r e s s c s m a a d d r e s s r x p a c k e t n u m b e r r x f i f o p a c k e t n u m b e r p a c k e t n u m b e r r e g i s t e r p a c k # o u t t x d o n e p a c k e t n u m b e r a l l o c a t i o n r e s u l t r e g i s t e r a l l o c a t e r e l e a s e p a c k # o u t d m a r d w r t x d e c o d e r m m u c o m m a n d r e g i s t e r a l l o c a t e r e l e a s e
96 csma block the csma/cd block is first interfaced via its control registers in order to define its operational configuration. from then on, the dma interface between the csma/cd block and memory is used to transfer data to and from its data path interface. for transmit, the csma/cd block will be asked to transmit frames as soon as they are ready in memory. it will continue transmissions until any of the following transmit error occurs: a) 16 collisions on same frame (half duplex mode) b) late collision (half duplex mode) c) lost carrier sense and mon_csn set d) transmit under run e) sqet error and stp_sqet set in that case txena will be cleared and the cpu should restart the transmission by setting it again. if a transmission is successful, txena stays set and the csma/cd is provided by the dma block with the next packet to be transmitted. for receive, the cpu sets rxen as a way of starting the csma/cd block receive process. the csma/cd block will send data after address filtering through the data path to the dma block. data is transferred into memory as it is received, and the final check on data acceptance is the crc checking done by the csma/cd block. in any case, the dma takes care of requesting/releasing memory for receive packets, as well as generating the byte count. the receive status word is provided by the csma/cd block and written in the first location of the receive structure by the dma block. if configured for storing crc in memory, the csma/cd unit will transfer the crc bytes through the dma interface, and then will be treated like regular data bytes. note that the receive status word of any packet is available only through memory and is not readable through any other register. in order to let the cpu know about receive overruns, the rx_ovrn bit is latched into the interrupt status register, which is readable by the cpu at any time. the address filtering is done inside the csma/cd block. a packet will be received if the destination address is broadcast, or if it is addressed to the individual address of the SMC91C95, or if it is a multicast address and almul bit is set, or if it is a multicast address matching one of the multicast table entries. if the prms bit is set, all packets are received. the csma/cd block is a full duplex machine, and when working in full duplex mode, the csma/cd block will be simultaneously using its data path transmit and receive interfaces. statistical counters are kept by the csma/cd block, and are readable through the appropriate register. the counters are four bits each, and can generate an interrupt when reaching their maximum values. software can use that interrupt to update statistics in memory, or it can keep the counter interrupt disabled, while relying on the transmit interrupt routine reading the counters. given that the counters can increment only once per transmit, this technique is a good complement for the single interrupt per sequence strategy. the interface between the csma/cd block and memory is word oriented. two bi-directional fifos make the data path interface. whenever a normal collision occurs (less than 16 retries - half duplex mode), the csma/cd will trigger the backoff logic and will indicate the dma logic of the collision. the dma is responsible for restarting the data transfer into the csma/cd block regardless of whether the collision happened on the preamble or not.
97 only when 16 retries are reached, the csma/cd block will clear the txena bit, and cpu intervention is required. the dma will not automatically restart data transfer in this case, nor will it transmit the next enqueued packet until txena is set by the cpu. the dma will move the packet number in question from the tx fifo into the tx completion fifo. network interface the SMC91C95 includes both an aui interface for thick and thin coax applications and a 10base-t interface for twisted pair applications. functions common to both are: 1. manchester encoder/decoder to convert nrz data to manchester encoded data and back. 2. a 32 ms jabber timer to prevent inadvertently long transmissions. when 'jabbing' occurs, the transmitter is disabled, automatic loopback is disabled (in 10base-t mode), and a collision indication is given to the controller. the interface 'unjabs' when the transmitter has been idle for a minimum of 256 ms. 3. a phase-lock loop to recover data and clock from the manchester data stream with up to plus or minus 18ns of jitter. 4. diagnostic loopback capability. 5. led drivers for collision, transmission, reception, and jabber. 10base-t the 10base-t interface conforms to the twisted pair mau addendum to the 802.3 specification. on the transmission side, it converts the nrz data from the controller to manchester data and provides the appropriate signal level for driving the media. signal are predistorted before transmission to minimize isi. in half duplex mode, the collision detection circuitry monitors the simultaneous occurrence of received signals and transmitted data on the media. during transmission, data is automatically looped back to the receiver except during collision periods, in which case the input to the receiver is network data. during collisions, should the receive input go idle prior to the transmitter going idle, input to the receiver switches back to the transmitter within 9 bit times. following transmission, the transmitter performs a sqe test. this test exercises the collision detection circuitry within the 10base-t interface. in full duplex mode, carrier sense is asserted during receive activity only. the receiver monitors the media at all times. it recovers the clock and data and passes it along to the controller. in the absence of any receive activity, the transmitter is looped back to the receiver. in addition, the receiver performs automatic polarity correction. the 10base-t interface performs link integrity tests per section 14.2.1.7 of 802.3, using the following values: 1. link_loss_timer: 64 ms 2. link_test_min_timer: 4 ms 3. link_count: 2 4. link_test_max_timer: 64 ms the state of the link is reflected in the ephsr. aui the SMC91C95 also provides a standard 6 wire aui interface to a coax transceiver. physical interface the internal physical interface (phy) consists of an encoder/decoder (endec) and an internal 10base-t transceiver. the endec also provides a standard 6-pin aui interface to an external coax transceiver for 10base-t and 10base-5 applications. the signals between mac and the phy can be routed to pins by asserting the nxendec pin low. this feature allows the interface to an external endec and transceiver. the phy functions
98 can be divided into transmit and receive functions. transmit functions manchester encoding the phy encodes the transmit data received from the mac. the encoded data is directed internally to the selected output driver for transmission over the twisted-pair network or the aui cable. data transmission and encoding is initiated by the transmit enable input, txe, going low. transmit drivers the encoded transmit data passes through to the transmit driver pair, tpetxp(n), and its complement, tpetxdp(n). each output of the transmit driver pair has a source resistance of 10 ohms maximum and a current rating of 25 ma maximum. the degree of predistortion is determined by the termination resistors; the equivalent resistance should be 100 ohms. jabber function this integrated function prevents the dte from locking into a continuous transmit state. in 10base-t mode, if transmission continues beyond the specified time limit, the jabber function inhibits further transmission and asserts the collision indicator ncoll. the limits for jabber transmission are 20 to 15 ms in 10base-t mode. in the aui mode, the jabber function is performed by the external transceiver. sqe function in the 10base-t mode, the phy supports the signal quality error (sqe) function. at the end of a transmission, the phy asserts the ncoll signal for 10+/-5 bit times beginning 0.6 to 1.6ms after the last positive transition of a transmitted frame. in the aui mode, the sqe function is performed by the external transceiver. receive functions receive drivers differential signals received off the twisted-pair network or aui cable are directed to the internal clock recovery circuit prior to being decoded for the mac. manchester decoder and clock recovery the phy performs timing recovery and manchester decoding of incoming differential signals in 10base-t or aui modes, with its built-in phase-lock loop (pll). the decoded (nrz) data, rxd, and the recovered clock, rxclk, becomes available to the mac, typically within 9 bit times (5 for aui) after the assertion of ncrs. the receive clock, rxclk, is phase-locked to the transmit clock in the absence of a received signal (idle). squelch function the integrated smart squelch circuit employs a combination of amplitude and timing measurements to determine the validity of data received off the network. it prevents noise at the differential inputs from falsely triggering the decoder in the absence of valid data or link test pulses. signal levels below 300mv (180mv for aui) or pulse widths less than 15ns at the differential inputs are rejected. signals above 585mv (300mv for aui) and pulse widths greater than 30ns will be accepted. when using the extended cable mode with 10base-t media which extends beyond the standard limit of 100 meters, the squelch level can optionally be set to reject signals below 180mv and accept signals above 300mv. if the input signal exceeds the squelch requirements, the carrier sense output, ncrs, is asserted.
99 reverse polarity function in the 10base-t mode, the phy monitors for receiver polarity reversal due to crossed wires and corrects by reversing the signal internally. collision detection function in the 10base-t mode, while in half duplex, a collision state is indicated when there are simultaneous transmissions and receptions on the twisted pair link. during a collision state, the ncoll signal is asserted. if the received data ends and the transmit control signal is still active, the transmit data is sent to the mac within 9 bit times. the nncoll signal is de- asserted within 9 bit times after the collision terminates. in the aui mode, the external transceiver sends a 10mhz signal to the phy upon detection of a collision. link integrity the phy test for a faulty twisted-pair link. in the absence of transmit data, link test pulses are tranmsitted every 16+/-18ms after the end of the last transmission or link pulse on the twisted pair medium. if neither valid data nor link test pulses are received within 10 to 150ms, the link is declared bad and both data transmission as well as the operational loopback function are disabled. the link integrity function can be disabled for pre- 10base-t twisted-pair networks.
100 board setup information isa mode the following parameters are obtained from the eeprom as board setup information: ethernet individual address i/o base address rom base address 8/16 bit adapter 10base-t or aui interface interrupt line selection all the above mentioned values are read from the eeprom upon hardware reset. except for the individual address, the value of the ios switches determines the offset within the eeprom for these parameters, in such a way that many identical boards can be plugged into the same system by just changing the ios jumpers. in order to support a software utility based installation, even if the eeprom was never programmed, the eeprom can be written using the SMC91C95. one of the ios combination is associated with a fixed default value for the key parameters (i/o base, rom base, interrupt) that can always be used regardless of the eeprom based value being programmed. this value will be used if all ios pins are left open or pulled high. the eeprom is arranged as a 64 x 16 array. the specific target device is the 9346 1024-bit serial eeprom. all eeprom accesses are done in words. all eeprom addresses shown are specified as word addresses. register eeprom word address configuration register base register ios value * 4 (ios value *4) + 1 individual address 20-22 hex if ios2-ios0=7, only the individual address is read from the eeprom. currently assigned values are assumed for the other registers. these values are default if the eeprom read operation follows hardware reset. the eeprom select bit is used to determine the type of eeprom operation: a) normal or b) general purpose register. a) normal eeprom operation - eeprom select bit = 0 on eeprom read operations (after reset or after setting reload high) the configuration register and base register are updated with the eeprom values at locations defined by the ios2-0 pins. the individual address registers are updated with the values stored in the individual address area of the eeprom. on eeprom write operations (after setting the store bit) the values of the configuration register and base
101 register are written in the eeprom locations defined by the ios2-0 pins. the three least significant bits of the control register (eeprom select, reload and store) are used to control the eeprom. their values are not stored nor loaded from the eeprom. b) general purpose register - eeprom select bit = 1 on eeprom read operations (after setting reload high) the eeprom word address defined by the pointer register 6 least significant bits is read into the general purpose register. on eeprom write operations (after setting the store bit) the value of the general purpose register is written at the eeprom word address defined by the pointer register 6 least significant bits. reload and store are set by the user to initiate read and write operations respectively. polling the value until read low is used to determine completion. when an eeprom access is in progress the store and reload bits of ctr will readback as both bits high. no other bits of the SMC91C95 can be read or written until the eeprom operation completes and both bits are clear. this mechanism is also valid for reset initiated reloads. note: if no eeprom is connected to the SMC91C95, for example for some embedded applications, the eneep pin should be grounded and no accesses to the eeprom will be attempted. configuration, base, and individual address assume their default values upon hardware reset and the cpu is responsible for programming them for their final value. diagnostic leds the following led drive signals are available for diagnostic and installation aid purposes: ntxled - activated by transmit activity. nbseled - board select led. activated when the board space is accessed, namely on accesses to the SMC91C95 register space or the rom area decoded by the SMC91C95. the signal is stretched to 125 msec. nrxled - activated by receive activity. nlinkled - reflects the link integrity status. arbitration considerations the arbiter exploits the sequential nature of the cpu accesses to provide a very fast access time. memory bandwidth considerations will have an effect on the cpu cycle time but no effect on access time. for normal 8 mhz, 10 mhz and 12.5 mhz isa buses as well as eisa normal cycles the SMC91C95 can be accessed without negating ready. when write operations occur, the data is written into a fifo. the cpu cycle can complete immediately, and the buffered data will be written into memory later. the memory arbitration request is generated as a function of that fifo being not empty. the nature of the cycle requested (byte/word) is determined by the lsb of the pointer and the number of bytes in the fifo. when read operations occur, words are pre- fetched upon pointer loading in order to have at least a word ready in the fifo to be read. new pre-fetch cycles are requested as a function of the number of bytes in the fifo.
102 for example, if an odd pointer value is loaded, first a byte is pre-fetched into the fifo, and immediately a full word is pre-fetched completing three bytes into the fifo. if the cpu reads a word, one byte will be left again a new word is pre-fetched. in the case of write, if an odd pointer value is loaded, and a full word is written, the fifo holds two bytes, the first of which is immediately written into an odd memory location. if by that time another byte or word was written, there will be two or three bytes in the fifo and a full word can be written into the now even memory address. when a csma/cd cycle begins, the arbiter will route the csma/cd dma addresses to the mmu as well as the packet number associated with the operation in progress. in full-duplex mode, receive and transmit requests are alternated in such a way that the cpu arbitration cycle time is not affected.
103 figure 17 - 64 x 16 serial eeprom map for isa mode configuration reg. base reg. configuration reg. base reg. configuration reg. base reg. configuration reg. base reg. configuration reg. base reg. configuration reg. base reg. configuration reg. base reg. ia0-1 ia2-3 ia4-5 ios2-0 word address 000 0h 1h 4h 5h 8h 9h ch dh 10h 11h 14h 15h 18h 19h 20h 21h 22h 001 010 011 100 101 110 xxx 16 bits
104 operational description maximum guaranteed ratings* operating temperature range ................................ ................................ ...................... 0 o c to +70 o c storage temperature range ................................ ................................ .................... -55 o c to +150 o c lead temperature range (soldering, 10 seconds) ................................ ................................ .. +325 o c positive voltage on any pin, with respect to ground ................................ ........................... vcc + 0.3v negative voltage on any pin, with respect to ground ................................ ................................ .. -0.3v maximum vcc ................................ ................................ ................................ ............................... +7v *stresses above those listed above could cause permanent damage to the device. this is a stress rating only and functional operation of the device at any other condition above those indicated in the operation sections of this specification is not implied. note: when powering this device from laboratory or system power supplies, it is important that the absolute maximum ratings not be exceeded or device failure can result. some power supplies exhibit voltage spikes on their outputs when the ac power is switched on or off. in addition, voltage transients on the ac power line may appear on the dc output. if this possibility exists, it is suggested that a clamp circuit be used. dc electrical characteristics (t a = 0 o c - 70 o c, vcc = +5.0 v 10%) parameter symbo l min typ max units comments i type input buffer low input level high input level v ili v ihi 2.0 0.8 v v ttl levels is type input buffer low input level high input level schmitt trigger hysteresis v ilis v ihis v hys 2.2 250 0.8 v v mv schmitt trigger schmitt trigger i clk input buffer low input level high input level v ilck v ihck 3.0 0.4 v v
105 parameter symbo l min typ max units comments input leakage (all i and is buffers except pins with pullups/pulldowns) low input leakage high input leakage i il i ih -10 -10 +10 +10 m a m a v in = 0 v in = v cc ip type buffers input current i il -150 -75 m a v in = 0 id type buffers input current i ih +75 +150 m a v in = v cc i/04 type buffer low output level high output level output leakage v ol v oh i ol 2.4 -10 0.4 +10 v v m a i ol = 4 ma i oh = -2 ma v in = 0 to v cc i/024 type buffer low output level high output level output leakage v ol v oh i ol 2.4 -10 0.5 +10 v v m a i ol = 24 ma i oh = -12 ma v in = 0 to v cc 024 type buffer low output level high output level output leakage v ol v oh i ol 2.4 -10 0.5 +10 v v m a i ol = 24 ma i oh = -12 ma v in = 0 to v cc 04 type buffer low output level high output level output leakage v ol v oh i ol 2.4 -10 0.4 +10 v v m a i ol = 4 ma i oh = -2 ma v in = 0 to v cc
106 parameter symbo l min typ max units comments od16 type buffer low output level output leakage v ol i ol -10 0.5 +10 v m a i ol = 16 ma v in = 0 to v cc od162 type buffer low output level high output level output leakage v ol v oh i ol 2.4 -10 0.5 +10 v v m a i ol = 16 ma i oh = -2 ma v in = 0 to v cc od24 type buffer low output level output leakage v ol i ol -10 0.5 +10 v m a i ol = 24 ma v in = 0 to v cc supply current active supply current standby i cc i csby 60 8 95 ma ma all outputs open capacitance t a = 25 o c; fc = 1mhz; v cc = 5v limits parameter symbo l min typ max unit test condition clock input capacitance c in 20 pf all pins except pin under test tied to ac ground input capacitance c in 10 pf output capacitance c out 20 pf
107 parameter min typ max units 10base-t receiver threshold voltage 100 mv receiver squelch 300 400 585 mv receiver common mode range 0 v dd transmitter output: voltage source resistance 2 2.5 3 10 v ohms transmitter output dc offset 50 mv transmitter backswing voltage to idle 100 mv differential input voltage 0.585 3 v aui receiver threshold voltage 60 mv receiver squelch 180 240 300 mv receiver common mode range 0 v dd transmitter output voltage (r=78 w ) 0.45 0.85 1.2 v transmitter backswing voltage to idle 100 mv input differential voltage 0.3 1.2 v output short circuit (to v cc or gnd) current 150 mv differential idle voltage (measured 8.0 m s after last positive transition of data frame) 40 mv capacitive load on outputs niocs16, iochrdy 240 pf intro-intr3 120 pf all other outputs 45 pf
108 timing diagrams figure 18 - pcmcia memory read timing a[5:0], nreg nce1 noe d[15:0] data valid t1 t2 t3 t4 t5 t6 0 min 30 max 5 max parameter min typ max units t1 address access time 300 ns t2 nreg access time 300 ns t3 nce1 access time 300 ns t4 noe access time 150 ns t5 output disable time from nce1 high 100 ns t6 output disable time from noe high 100 ns note: applies only when nwait is asserted by the SMC91C95.
109 figure 19 - pcmcia memory write timing a[5:0], nreg nce1 nwe d[15:0 (din)] 250 min t4 t1 t5 0 min t2 parameter min typ max units t1 nwe pulse width 150 ns t2 address/nreg setup time to nwe low 30 ns t3 address/nreg setup time to nwe high 180 ns t4 nce1 low to nwe high setup time 180 ns t5 data to nwe high setup time 80 ns t6 data hold time from nwe high 30 ns t7 write recovery time (address, nreg hold from nwe high) 30 ns noe t3 20 min t7 t6 note: minimum write pulse width must be met whether or not nwait is asserted by the SMC91C95
110 a[15:0] nreg niois16 t4 ninpack nce niord d[15::0] t1 t5 t7 t6 nmcs t18 t15 t3 t10 t17 t2 t16 t9 t11 t8 t12 t13 t14 t36 t19 t20 figure 20 - i/o read timing (table on the following page)
111 parameter min typ max units t1 address setup before niord low 70 ns t2 ncei, nce2 setup before niord low 5 ns t3 nreg setup before niord low 5 ns t4 niord low width 165 ns t5 address hold from niord high 20 ns t6 nce1, nce2 hold following niord high 20 ns t7 nreg hold following niord high 0 ns t8 address valid to ninpack low 115 ns t9 nce1, nce2 low to ninpack low 50 ns t10 nreg low to ninpack low 50 ns t11 niord low to ninpack low 45 ns t12 address valid to niois16 valid 35 ns t13 niord low to data valid 100 ns t14 data hold following niord 0 ns t36 niois16 delay from address 35 ns t15 address valid to nmcs low 20 ns t16 nce1 low to nmcs low 40 ns t17 nreg low to nmcs low 40 ns t18 address invalid to nmcs high 100 ns t19 nce1 high to nmcs high 40 ns t20 nreg high to nmcs high 40 ns
112 a[15:0] nreg niois16 t24 nce1 nce2 niowr d[15::0] t25 t27 t26 nmcs t30 t23 t32 t22 t31 t21 t28 t29 t34 t35 t33 t36 figure 21 - (i/o write timing) (table on the following page)
113 parameter min typ max units t21 address setup before niowr low 70 ns t22 nce1, nce2 setup before niowr low 5 ns t23 nreg setup before niowr low 5 ns t24 niowr low width 165 ns t25 address hold from niowr high 20 ns t26 nce1, nce2, hold following niowr high 20 ns t27 nreg hold following niowr high 0 ns t28 address valid to niois16 valid 35 ns t29 data hold following niowr 30 ns t30 address valid to nmcs low 100 ns t31 nce1 low to nmcs low 40 ns t32 nreg low to nmcs low 40 ns t33 address invalid to nmcs high 100 ns t34 nce1 high to nmcs high 40 ns t35 nreg high to nmcs high 40 ns t36 niois16 delay from address 35 ns
114 figure 22 - card configuration registers - read/write pcmcia mode (a15=1) ns ns ns ns ns ns ns ns ns 40 50 30 9 25 15 25 15 60 0 t57 t58 t59 t60 t61 t62 t63 t64 t65 write data setup to nwe rising write data hold after nwe rising noe low to valid data address, nreg setup to nwe active address, nreg hold after noe inactive address, nreg setup to noe active address, nreg hold after control inactive nce1 setup to nwe rising nce1 low to valid data parameter min typ max units t60 t63 t60 t61 t62 t64 t57 t58 t59 t65 valid valid valid valid a0-9,a15 nreg nce1 nwe noe d0-7
115 figure 23 - pcmcia consecutive read cycles ns ns ns ns ns ns ns ns ns 35 40 0 5 5 185 0 15 25 15 0 parameter t46 t47 t48 t20 t49 t50 t51 t52 t53 niord delay to nreg low to control nce1,nce2 setup to control cycle time (no wait nreg hold after control nce1,nce2 hold after control address setup to control address hold after control niord active to data min typ max units t51 t52 t48 t20 t49 t50 t53 t47 t46 t46 valid valid a0-9,a15 nreg nce1,nce niord d0-15 ninpac
116 figure 24 - consecutive pcmcia write cycles 5 5 0 15 25 15 185 30 9 t51 t52 t47 t49 t48 t50 t20 t54 t55 valid valid a0-9,a15 nreg nce1,nce2 niowr d0-15 t47 t48 t49 t50 t51 t52 t20 t54 t55 ns ns ns ns ns ns ns ns ns nreg low setup to control active nce1,nce2 setup to control active nreg hold after control inactive nce1,nce2 hold after control inactive address setup to control active address hold after control inactive cycle time (no wait states) write data setup to niowr rising write data hold after niowr rising parameter min typ max units
117 figure 25 - pcmcia attribute memory read/write (a15=0) ns ns 20 25 nwe to nfwe delay address, nreg, nce1 delay to nfcs t66 t67 parameter min typ max units t67 t67 t67 t67 t67 t67 t67 t67 t67 t67 t67 t67 t66 t66 valid valid a0-9,a15 nreg nce1 nfcs nwe nfwe noe 0 0
118 figure 26 - ringout for l39/c39 rockwell modems entering/exiting powerdown nmpwdn] mringoutb parameter min typ max units t1 mringoutb pulse entering powerdown 7.5 ms t2 mringoutb pulse exiting powerdown 7.5 ms t1 t2
119 figure 27 - isa consecutive read cycles bale tied high valid address valid address valid data out valid data out t15 t4 t3 t20 t5 t6 z z a0-15 aen, nsbhe niocs16 niord d0-15 t3 t4 t5 t6 t15 t20 address, nsbhe, aen setup to control active address, nsbhe, aen hold after control inactive niord low to valid data niord high to data floating a4-a15, aen low, bale high to niocs16 low cycle time* parameter min typ max units 25 20 185 40 30 25 ns ns ns ns ns ns iochrdy not used - t20 has to be met *note: the cycle time is defined only for consecutive accesses to the data register. these values assume that iochrdy is not used.
120 figure 28 - isa consecutive write cycles valid address valid address t15 t4 t3 t20 a0-15 aen, nsbhe niocs16 niowr d0-15 valid data in valid data t7 t8 bale tied high t3 t4 t7 t8 t15 t20 25 ns ns ns ns ns ns address, nsbhe, aen setup to control active address, nsbhe, aen hold after control inactive data setup to niowr rising data hold after niowr rising a4-a15, aen low, bale high to niocs16 low cycle time* parameter min typ max units 25 20 30 9 185 iochrdy not used - t20 has to be met *note: the cycle time is defined only for consecutive accesses to the data register. these values assume that iochrdy is not used.
121 figure 29 - isa consecutive read and write cycles t20 a0-15 aen, nsbhe niocs16 niowr d0-d15 valid address valid address niord t9 t10 z z z valid data valid data iochrdy z z control active to iochrdy low iochrdy low pulse width* cycle time** parameter min typ max units 100 185 15 150 ns ns ns t9 t10 t20 *note: assuming no wait st = 0 in configuration register and cycle time observed. **note: the cycle time is defined only for accesses to the data register as follows: for data register read - from niord falling to next niord falling for data register write - from niowr rising to next niowr rising
122 figure 30 - data register special read access a0-15 (isa) aen, nsbhe niocs16 d0-d15 niord valid data valid address iochrdy out t9 t18 t19 z z parameter min typ max units 15 575 225 ns ns ns t9 t18 t19 control active to iochrdy low iochrdy width when data is unavailable at data register valid data to iochrdy inactive iochrdy is used instead of meeting t20 and t43. "no wait st' bit is 1 - iochrdy only negated if needed and only for data register access.
123 figure 31 - data register special write access niocs16 d0-d15 valid address a0-15 (isa) aen, nsbhe niowr valid data in iochrdy t18 z z parameter min typ max units 15 425 t9 t18 control active to iochrdy low iochrdy width when data register is full iochrdy is used instead of meeting t20 and t44. 'no wait st' bit is 1 - iochrdy only negated if needed and only for data register access. ns ns t9
124 figure 32 - 8-bit mode register cycles figure 33 - external rom read access a0-15 (isa) aen niord d0-7 niowr t3 t3 t5 z valid data out z valid data in t7 t8 valid address t3 t5 t7 t8 address, nsbhe, aen setup to control active niord low to valid data data setup to niowr rising data hold after niowr rising parameter min typ max units 25 30 9 40 ns ns ns ns valid address t3 t4 t16 t17 address setup to control active address hold after control inactive nmemrd low to nrom low nmemrd high to nrom high 25 20 0 0 25 30 ns ns ns ns a0-19 nmemrd address valid d0-15 t3 t4 z parameter min typ max units bale tied high
125 figure 34 - isa register access when using bale aen niocs16 a0-15, nsbhe niord bale niowr t4 valid t1 t2 t15 t3 t1 t2 t3 t4 t15 address, nsbhe setup to bale falling address, nsbhe hold after bale falling address, nsbhe, aen setup to control active aen hold after control inactive a4-a15, aen low, bale high to niocs16 low parameter min typ max units 20 20 25 20 25 ns ns ns ns ns t4 not needed. niocs16 not relevant in 8-bit mode.
126 figure 35 - external rom read access using bale address setup to bale falling address hold after bale falling address setup to control active nmemrd low to nrom low nmemrd high to nrom high nmemrd a0-19 nrom bale valid t1 t2 t3 t16 t17 t1 t2 t3 t16 t17 parameter min typ max units 20 20 25 25 30 ns ns ns ns ns
127 figure 36 - eeprom read eedi eesk eedo eecs eesk falling to eedo, eecs changing t21 parameter min typ max units 100 ns t21 t21 0 9346 is typically the serial eeprom used.
128 figure 37 - eeprom write eesk eedo eedi eecs eesk falling to eedo, eecs changing t21 parameter min typ max units 100 ns t21 t21 9346 is typically the serial eeprom used.
129 figure 38 - memory read timing figure 39 - memory write timing address pointer register data register niowr niord iochrdy/ nwait (z) t44 t44 pointer register reloaded to a word of data prefetched into data register parameter min typ max units ns 2 * t20 note: if t44 is not met, iochrdy will be negated for the required time. this parameter can be ignored if iochrdy is connected to the system. address data register pointer register niowr t45 t45 last access to data register to pointer reloaded parameter min typ max units ns 2 * t20
130 figure 40 - external endec interface - start of transmit figure 41 - external endec interface - receive data (rxd sampled by falling rxclk) ntxen txd txclk t22 t22 txd, ntxen delay from txclk falling t22 parameter min typ max units 40 ns 0 rxd rxclk ncrs t23 t24 t23 ncrs, rxd setup to rxclk falling ncrs, rxd hold after rxclk falling t23 t24 parameter min typ max units ns ns 10 30
131 figure 42 - differential output signal timing (10base-t and aui) tpetxp tpetxn tpetxdn tpetxdp txp txn t31 t32 t33 t34 tpetxp to tpetxn skew tpetxp(n) to tpetxdp(n) delay tpetxdn to tpetxdp skew txp to txn skew parameter min typ max units -1 47 -1 -1.5 +1 53 +1 1.5 ns ns ns ns t31 t31 t32 t32 t33 t33 t34 t34 twisted pair drivers aui drivers
132 figure 43 - receive timing - start of frame (aui and 10base-t) 1 1 0 1 0 1 0 1 0 0 first bit decoded t35 t36 1 1 0 1 0 1 0 1 0 0 t37 first bit decoded t38 recp recn ncrs (internal) tperxp(n) ncrs (internal) t35 t36 t37 t38 noise pulse width reject (aui) carrier sense turn on delay (aui) noise sense pulse width reject (10base-t) carrier sense turn on delay (10base-t) parameter min typ max units 15 50 15 450 30 100 30 550 ns ns ns ns 25 70 25 500
133 figure 44 - receive timing - end of frame (aui and 10base-t) b a 1/0 last bit tperxp tperxn recp recn ncrs (internal) t39 t39 receiver turn off delay parameter min typ max units 200 300 ns
134 figure 45 - transmit timing - end of frame (aui and 10base-t) b a 1/0 last bit tpetxp tpetxn txp txn t40 t41 transmit output high to idle in half-step mode transmit output high before idle in half-step mode parameter min typ max units 200 800 ns ns t40 t41
135 figure 46 - collision timing (aui) t42 t43 collp colln col (internal) t42 t43 collision turn on delay collision turn off delay parameter min typ max units 50 350 ns ns
136 0 hd d he e e b 0.08(0.003) m a 2 a 1 y c l 1 l 0.25 gage plane symbol millimeter inch min. nom. max. min. nom. max. 0.05 0.95 0.13 0.09 13.90 13.90 15.90 15.90 0.45 0 0.10 1.00 0.18 14.00 14.00 0.40 16.00 16.00 0.60 1.00 0.15 1.05 0.23 0.20 14.10 14.10 16.10 16.10 0.75 0.08 7 0.002 0.037 0.005 0.004 0.547 0.547 0.626 0.626 0.018 0 0.004 0.039 0.007 0.551 0.551 0.016 0.630 0.630 0.024 0.039 0.006 0.041 0.009 0.008 0.555 0.555 0.634 0.634 0.030 0.003 7 a 1 a 2 b c d e e h d h e l l 1 y 0 figure 47 - vtqfp package outline

300 kennedy drive hauppauge, ny 11788 (516) 435-6000 fax (516) 231-6004 circuit diagrams utilizing smc products are included as a means of illustrating typical applications; consequently complete information sufficient for construction purposes is not necessarily given. the information has been carefully checked and is believed to be entirely reliable. however, no responsibility is assumed for inaccuracies. furthermore, such information does not convey to the purchaser of the semiconduc tor devices described any licenses under the patent rights of smc or others. smc reserves the right to make changes at any time in order to improve design and supply the best product possible. SMC91C95 rev. 08/08/96


▲Up To Search▲   

 
Price & Availability of SMC91C95

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X